Fixed a bug where onKey() was triggered when the key is "just pressed" instead of when the key is "held down"