So you want to try something like this.

When you click the button you program it will turn on the motor. After you release the button it will continue running. After you click the same button again it will shut off the motor. Remember to place your the "Motor Get" and "Set Output". Then just create a Constant depending how fast you want the motor to move when the button is clicked and in the false case you want to create a constant of 0.