Now you will want to look at the COUNT command. Might be what you need for the button presses.