static void Main() { using (var HookLL = new KeyboardHook(true)) { HookLL.OnKeyDown += HookLL_OnKeyDown; HookLL.OnKeyUp += HookLL_OnKeyUp; Console.ReadLine(); } }