Push button control over Stepper motor TB6600

Try this concept:

while(digitalRead(CWPin){

  stepMotorCW;

}

while(digitalRead(CCWPin){

  stepMotorCCW;

}