If for some reason we need to change the keyboard layout of our Debian 7 system, for example to use special keys like ñ, we can do it in two simple steps:
1.- Change keyboard layout
#dpkg-reconfigure keyboard-configuration
2.- Apply changes
To make the changes effective immediately we will use the following command:
#setupcon
This post is also available in Español.