I have done this before, but I currently don't have access to the code anymore.
AFAIK, there are 2 possibilities:
1. use GetAsyncKeyState in a loop
2. install a global keyboard hook with SetWindowsHookEx
Your profile says you're german so this will help you:
http://dotnet.mvps.org/vb/articles/keyboardhook/
Bookmarks