Control 4 stepper motors for Halloween

Try this concept:

while(digitalRead(aPin){

  stepMotorA();

}

while(digitalRead(bPin){

  stepMotorB();

}