I am trying to write a program that will sit inthe system tray and log peoples keystrokes to a text file. It has to run in the background. Is there an easy way to determine which keys a user has pressed, and if so how would i go about writing such a piece of code?

Cheers in Advance

Andy