stepper motor control using button

Are you sure you have the connections correct.

In your code you have this

AccelStepper Stepper1(1,6,10); //use pin 6 and 10 for dir and step

but the library treats the second value as "step" and the third as "dir"

...R