read-only
Indicates the location of the key on the keyboard.
This is useful for differentiating keys that appear more than once on a keyboard. For example, you can differentiate between the left and right Shift keys by the value of this property:
- KeyLocation.LEFT for the left and
- KeyLocation.RIGHT for the right.
Another example is differentiating between number keys pressed on the standard keyboard (KeyLocation.STANDARD) versus the numeric keypad (KeyLocation.NUM_PAD).