public void SetupKeyboardHooks() { _globalKeyboardHook = new GlobalKeyboardHook(); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.ShiftF1); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.F1); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.ShiftF2); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.F2); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.F5); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.ArrowLeft); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.ArrowRight); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.CtrlLeftArrow); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.CtrlRightArrow); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.CtrlDownArrow); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.CtrlUpArrow); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.ESC); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.SPACE); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.CtrlM); _globalKeyboardHook.AddAllowedKey((int)BasicClassLibrary.Shortcut.CtrlA); _globalKeyboardHook.KeyboardPressed += _globalKeyboardHook_KeyboardP; }