Refactor tapkey state machine.

Stopping timers isn’t really necessary. That allows timout and other key
press events handling to be merged.