I have a us keyboard on my Laptop IBM/Lenovo T30, and usually I need to write in spanish, so I miss the “ñ”, on this situation I use this command to change the layout of my keyboard from us to es, and then take it back to us when I need any special key that is hard to find.
It is really easy to change the keyboard map or layout of your GNU/Linux operating system on the fly, with no need to configure nothing or change any configuration file. But be aware that once you reboot your computer it will return to the previous state the command is:
setxkbmap -layout us
You may use these codes, among others
us - US keyboard es - Spain la - Latin America fr - French keyboard layout