keep track of button presses