I want to know how to trap keyboard input to a txt file using .

I want to application to run behind the screen and should write all key press by the user to a text file. I need to know about this ASAP how develope this application. IF you have a source code for this then please send it through email to me in detail.

I hope that I will get some answer