@lexus I don't think it has anything to do with RetroPie, it seems to me the first place you should check are your locale and keyboard language settings.
In the terminal enter sudo raspi-config to check and change your Localisation Options.