Invoked when a key has been pressed.
Invoked when a key has been released.
Invoked when a key has been typed. This event occurs when a key press is followed by a key release.