Program stops after button press

@Nick Gammon
Right, otherwise he'll go through 50 or so numbers (depending on size of program) with just one press.

OP, study Nick's sketch! It looks for when the switch/button's state changes from HIGH to LOW, (or vice versa), and only when it see that the state did change, it does an action.