This ignores the user's keyboard layout, so that if the user presses the key at the "Y" position in a QWERTY keyboard layout (near the middle of the row above the home row), this will always return "KeyY", even if the user has a QWERTZ keyboard (which would mean the user expects a "Z" and all the other properties would indicate a "Z") or a Dvorak keyboard layout (where the user would expect an "F"). If you want to display the correct keystrokes to the user, you can use Keyboard.getLayoutMap().
I say let's follow the advice and look into Keyboard.getLayoutMap. Or maybe something better?
Currently they're displayed like this:
and they do not respect the keyboard layout:
I say let's follow the advice and look into
Keyboard.getLayoutMap
. Or maybe something better?