Fix KeyInputEvent not firing for Key-Release events.

Move the hook for `KeyInputEvent` so that it also fires for Key-Released events, to make it a) more usable and b) match `MouseInputEvent`.