Help with stepper motor code

Thank you for reply, Its a remoteXY - button.