Fix ignoring keypresses that were falsely detected as key repeats