KeyCode QWERTY but Keyboard is AZERTY

Hi,

With both keyboard listeners onKeyPressed and onKeyReleased, the KeyCode when an event occurs is corresponding to a QWERTY keyboard and not to my AZERTY keyboard.

For example, on my french azerty keyboard, when I press “Z”, the keyCode is “W”

How to fix it ?