run loop until input is high

Study the Blink Without Delay example.

If you want to be able to respond to a button on-demand, you'll need to get rid of your delays().