I need a sample application which will trap some event, like a keydown event, or mousedown event, etc from an application running in the background. That is, whenever the user presses a key on the keyboard, this application traps this event regardless of whether the user was in Microsoft Word, Microsoft Excel, or even Windows Explorer (i.e. a Windows folder is open and the user preses some key).
I would prefer VB.NET, if possible.
I just need a sample so that I can add required functionality from there.