How to start a stepper motor with a push button, but stop it on its own

Hi,
as it is the first time using the forum, read the topic.
" How to get the best out of this forum "
Then correct your post by putting the code between the </> tags.
And also correct your code because it has syntax error. It doesn't compile as is.