Make a parallel event with a "wait for key press" delay on your input processing. Have it add to a variable every time you press the button. Either use the built in counter, or make your own. Check the value of the variable at the end of the timer.
EDIT - Or, just use labels and the "go to label" function to take the place of the parallel.
