Set the Keyboard hook.
Please check the following FAQ for more details.
How do I set a low level mouse hook and keyboard hook in C#?
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?