keyboard

Origin link 2023-4-16

 

According to Archlinux wiki and How Keys Are Turned Into Actions , here comes how keystroke information is transferred in computer.
And there are two types of key (see link )
.inputrc is readline initialization file and used to map key sequence to readline function like "end-of-history". Then you need to use text to describe "special keys" or "escape sequences", see following example.
You could use "showkey -k" or "od -c" to show escape sequence of special keys.