Creates a Key object from a keyboard event.
The key code.
The key states.
The ASCII character.
The character code.
The Key object.
Creates a Key object from a keyboard event.