You need to hijack anything to just process the keystroke. You did not tag what library you want to use (Forms, WPF?), so it is not possible to give one universal answer; and I don't want to list all thinkable variable. You can easily achieve all you need by just handling
KeyDown
event an some controls. You can also use menu hot keys — they will work regardless what control is currently focused.
[EDIT]
After the question was tagged:
With
System.Windows.Forms
, you can also use
System.Windows.Forms.Form.KeyPreview
, see
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.keypreview.aspx[
^]. If you assign the valued for this property to
true
(while default it
false
), you will be able to process keyboard events before they go to controls; this is what you need.
—SA