Keyboard Key Press - identification CLI

Good Day Community,

I have a question, but am uncertain about the correct terminology to use?

Anyway, is there a CLI command/app where it displays the key being pressed in the terminal, as you type?
For example, you open the terminal, tun the command, then press the “windows” button, when the program gives an output of “mod4” or “4” or something like that?

I want to identify certain keys on my laptop’s keyboard.

Thank You

Try xev.

3 Likes

in a terminal:

xmodmap -pm

will list the available mod keys

2 Likes

Or there is Xbindkeys.
https://wiki.archlinux.org/index.php/Xbindkeys#Identifying_keycodes

2 Likes