Have not tried apt-get install logkeys http://www.gtkdb.de/index_7_1195.html cat /proc/bus/input/devices logkeys -s -u -d /dev/input/event3 -o /var/log/logkeys