I'm going to make a presentation about a software product and it has some key shortcuts, that I want to show. Is there a program, which displays the keyboard-shortcuts, that I have used?
There is a program called key-mon that monitors the pressed keys. It's been some time since I used it, but it worked well and it's display is quite appealing.
You can use
Start the application you'd like to monitor, e.g.,
You need the window (hex) ID in the first column; to get it, you could use
You could parse the data (to get the ID) in a number of ways, or even enter the ID manually, of course. (The zeroes in the second column above are the desktop number.)
It will show the keystrokes (and more) in the same terminal as the command was invoked; plus, with
NOTE It works for urxvt and xman, but for some reason, it fails for Iceweasel in the above listing (it records something, but it isn't presenting key events as clear (by far) as is the case with those other examples.