In my app users are allowed to use combination of Shift+Numbers to do some stuff. Everything works fine when the users use Shif + numpad keys. The problem shows itself when the users use the number keys (the ones below function keys). On Windows and in KeyPressed function it always give me the same key code with or without Shift. For example for number 1 it always gives keyCode = 49 no matter if Shift is pressed or not. On OSX, though, it gives the character code of the generated key for example Shift+1 on a German layout gives keyCode = 33 which is "!" sign. It makes the code Keyboard Layout dependant.
Is there a way of accessing the real KeyCode of the NSEvent on OSX? It seems all we get is the key code for the charachter represantation.