Operate stepper motor in clockwise and anticlockwise rotation with push swithces

Hello All
My name is Gaetano, I am very new to Arduino. I am trying to help out one of my students, he is wanting to build a simple elevator using a stepper motor, 28-BYJ48 Stepper motor. with driver. An image of the type of stepper and driver is attached. I have been able to make the stepper motor rotate in both directions, but I have no idea of how to integrate the switches. I have seen numerous examples on the internet, but there is insufficient information for me to build the circuit let alone deal with the code. If anyone would be able to point me in the right direction I would be grateful, thank you

Stepper and Driver.JPG

Please post the program that you have and which makes the motor move back and forth.

Have you studied any of the examples that deal with switches?

...R

The Arduino program development software comes with examples to connect and read buttons, and there are plenty of tutorials on the web.

Once you understand how to read buttons and run a stepper, combining the two can be as easy as:

while (digitalRead(down_button) == LOW) step_motor_down();