I want to create a program which runs in the background and all the keys pressed should be written to a local .txt file. I am unable to trap the keyboard. I have tried using some API's but i dont think they are the right ones, i think that shell script might be required.
Thank you in advance
