On a french version of Windows with keyboard in French, key sent are sent like on a QWERTY keyboard.
Can you give the source of the harcoded key values ? What I was able to find with a quick search do not match with your values (like here)
I was thinking to add another argument to specify the language of the targeted system in order to use the appropriate keymap.