Fix recognicion of repeated events

Turns out the value is not `1` for repeated events, but `2`. This means
that:
 * my previous approach broke because I was comparing the value directly
 * instead of looking things up in an array, I can just look at the
   value and use _this_ as a base for recognicion of repeated events
Add missing reset of the hotkeys' state