Retrieves the key code for the key the user pressed.
public int getKeyCode()
Returns the key code for the key the user pressed.
Key code constants are defined in the Key class.