you need to write a win32 program that hooks into the keyboard. See SetWindowsHookEx function in MSDN
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
and it would not be a TSR. That name is specific to a category of DOS programs that would load and stay in the background.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
some keys cannot be hooked by the way (they are reserved for the OS e.g control+alt+del)
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601