How to add an external switch

Hi everyone, I am a NOOB #1, I having been using my Arduino for about............two days now. I've managed to copy some code to run a stepper motor through an Arduino shield. Don't ask me how but I did. the next step of my project is add an external pushbutton to the project. I first need a signal to operate a relay and then after a short delay then start the sketch that I already have operating the stepper motor. Help with the code as well as the physical connections to the board are what I looking for help with. :cold_sweat:

You have a lot of homework to do ...

You have a lot of homework to do .

But this is the most fun homework around!

See THIS: for some SwitchStuffHowTo and example code.