Pros button command for 2 actions

Is it possible to bind one button to do two separate actions? For example, preess button A once rotates motor back and pressing button A again moves motor forward.
This is for PROS by the way not a vex code.

You could use a state variable to keep track of if action A or action B is next.