I.m Sorry to move the stepper Front (Clockwise) and Back (CounterClockSwise)
The Issue is I was trying with the arduino examples and just one direction this can happend... also the easydriver is reallyhot and this is how I wire it.
If it is getting hot, you should turn the current down a bit.
So.... study the Blink Without Delay, and use micros() instead of millis() to time your stepper motor. One button will pull the DIR HIGH, the other will pull DIR LOW, and you want the STEP to be enabled if and only if one and only one button is pressed.
I strongly suggest you use distance >= 3600 rather than ==. If for some reason it passes 3600, it won't get stuck forever counting.
You could also use the tone() command. Either run it for a fixed time, or turn it on only when just one button is pressed. Harder to get an accurate count of the steps, although you can get close using micros().