Monodevelop c# get all global keypress [closed]

view story

http://stackoverflow.com – Straight into the question... In my office there are lots of friends screwing around and when I come back from the toilet there is usualy troll face standing on my desktop so I decided to lock my computer, but as I don't like to enter my password over and over again after 5 mins in the bathroom I decided to make c# application that sniffs keys pressed on my PC. If it matches the pattern then it should lock my PC. Allmost immediatly I stumbled upon a problem: I don't know how to listen for every keystroke globally. I am using Linux and Monodevelop to make stuff happen... So please no windows (HowTos)