If I remember correctly, keyboards are physically attached and thus belong to a specific hardware configuration.
In Fedora/RedHat you can find the configuration for the attached keyboard device in: /etc/sysconfig/keyboard
Once you log in to a remote system you'll be given a tty, tty's use a terminal emulationspecific
This emulation -so to speak- maps your physical keyboard keys into a 'virtual' key map generic for a certain terminal.
Terminal emulations are abundant, but usually refer to a standardized keyboard layout from a major OEM (from times long gone...)
The type of emulation for your current session can be found in the env variable called: TERM