KeyEvent.keyCode

the key code of the key that was typed, as defined by the key code constants in class <code>SWT</code>. When the character field of the event is ambiguous, this field contains the unicode value of the original character. For example, typing Ctrl+M or Return both result in the character '\r' but the keyCode field will also contain '\r' when Return was typed.

@see org.eclipse.swt.SWT

class KeyEvent
int keyCode;

Meta