different action based on the number of times a button is pressed

Yes Dale.

"More cowbells! I need more cowbells!"

cowbells == braces

http://www.cplusplus.com/doc/tutorial/control/

And put the delay(25) inside them, so it will be part of your for loop

John