Help with Arduino program

otherwise the mode change will be so fast you'll end up with a random selection.

In my code, the mode changes only once each time the switch is pressed. The speed at which it changes depends entirely on how fast the user presses and releases the switch.