Clear button presses at proper times.