JS KeyboardEvent has
- key (number, the physical key on the keyboard)
- code (string, the final character on the keyboard after evaluating locale, keyboard layout and SHIFT / ALT / CTRL)
- keyCode (number, deprecated, the number does not represent the final character)
- charCode (number, deprecated, only available during keyPress event)
GWT uses keyCode for legacy reasons. You should always use code/key. But even if you use code/key you still have to take care if your application is international. A classic one is ALT + "/" as a keyboard shortcut which I cannot trigger at all for example.
-- J.