To change the keyboard layout on a Raspberry Pi, do the following:
Make sure you are in the terminal. If you aren’t, open LXTerminal. Then type:
sudo nano /etc/default/keyboard
If you did that right, a window will show up. It looks like the window below:
Then, change the XKBLAYOUT field to another timezone. You can see an example below:
When you changed it, press the following key combination and reboot:
Now enjoy your new keyboard layout!