kbdevents is a Linux kernel module that allows you
to execute a command for every pressed key or to
see its keycode. It includes some sample scripts
that can be used as the command to be executed on
every key pressed: a keylogger, a script to take
screenshots in the console by pressing the PrtSc
key, and another one that imitates typewriter sounds.