I'm trying to make the up and down keys go back and forward in command line history, respectively. While googling how to do this, I saw a lot of commenters giving their opinions on certain keymap formats. I wasn't able to learn which format is the most compatible, but I got an overall sense that every keyboard can be different.
Therefore, I'm wondering if there's a command or program I can run where, if I press a key combination, it'll print the keymap string for it. That way I can be sure I'm using the appropriate key man from my keyboard. Alternatively, if there is a list of universally compatible keymaps, I could use that as an answer, too.
Note I am using WSL2 (Windows subsystem for Linux). Ubuntu is my distro.