I'm super sorry. While typing the code, I just thought about checking the keyboard settings ( should have done that first ! ) and for whatever reason, it was set on an obsolete French variant. Setting it back to the regular setting solved the problem.
Thank you for your quick answer !