08.03.2013 - It uses python-evdev to read from /dev/input/foo and very dirtyly converts To find the PID of the login/getty process from where the keyboard is Now, you can read the tty from where the keyboard keys are coming (tty is .