Ignore event spams of keys we already have

A key press should only cause a state change if the key wasn't pressed
before.