End while loop by pressing button

Read this about while loops…

Pete.