I have a issue whit code.
I want to run a loop on button.
When i press button steper motor should rotate 200 steps and stop .
End every time when I press button should to do that.
But it works only when i hold button.
I repleace pinout and issue is same.
I did not download your code but from your description you should look at the state change detection example in the digital examples in the IDE File menu. That way you can know when the button BECOMES pressed not IS pressed.