This question already has an answer here:
I have always had trouble with understanding the way keyboard mapping and related things are put together in Linux.
When things break, it makes my blood boil if I have to sift through endless outdated mailing list and forum posts to find THAT one command or inputrc line that fixes my problem.
There are classic problems like backspace not working in vim, or
Ctrl + arrows in bash until you switch terminal type. Or a problem I've encountered recently, where in fresh Debian install
@ key actually prints
@ (wrong keyboard layout?)
Just looking at files and tools doesn't help too much. inputrc? xmodmap? setxkbmap? console-setup? Where do I get started to actually understand how it works so I don't have to resort to trying someone's dubious commands to fix my keyboard problems?