Change from qwerty to azerty in command line
This should set your keyboard to azerty
in a terminal emulator:
setxkbmap fr
If on a console, that would be (as root):
loadkeys fr
I tried what @jlliagre suggests but the OS told me "the permission is denied" so the solution here is very easy. If you are on the console you write sudo loadkeys fr
to change the keyboard mode to azerty, then you enter your session password and finally all will be right.