Push button control over Stepper motor TB6600

Could u just give an example on how to write the coding so that when the power is on. The stepper is remain in offstate until I press and hold the button, then it move. After released, it stop. Thanks