Commands

CommandDescription
xevcreates a window and asks X server to send it events whenever anything happens (including mouse movement, …)
showkeyexamine the codes sent by the keyboard
showkey -asame as above but in ascii dump mode