keyCode property

int keyCode
final

The hardware key code corresponding to this key event.

This is the physical key that was pressed, not the Unicode character. This value may be different depending on the window toolkit used. See KeyHelper.

Implementation

final int keyCode;