public Form1() { InitializeComponent(); _keyboardHook = new KeyboardHook(); _keyboardHook.InstallHook(Form1_KeyPress); }