For my test I\'ve created a little program in C# to detect key presses with this code:
protected override void OnKeyDown(KeyEventArgs e) { if (e.KeyCode
Your form will only receive keypress events when it has focus, to receive other keypress events you would need to register a global hotkey.
http://www.dreamincode.net/forums/topic/180436-global-hotkeys/