title: Multiple global hotkeys in C# console application
body: <p>To register global hotkey in console application in C#, I am using the code posted here:
  <a href="https://stackoverflow.com/a/3654821/3179989">https://stackoverflow.com/a/3654821/3179989</a></p>
  
  <p>It works perfectly, but when I add multiple hotkeys, pressing one hotkey will result in running all of the hotkey_pressed events:</p>
  
  <pre><code>   HotKeyManager.RegisterHotKey(Keys.E, KeyModifiers.Control);
     HotKeyManager.HotKeyPressed += new EventHandler&lt;HotKeyEventArgs&gt;(HotKeyManager_HotKeyPressed);
  
     HotKeyManager.RegisterHotKey(Keys.A, KeyModifiers.Control);
     HotKeyManager.HotKeyPressed += new EventHandler&lt;HotKeyEventArgs&gt;(HotKeyManager_HotKeyPressed2);
  </code></pre>
  
  <p>Can somebody help me to change the code, or suggest me any other solution/idea for multiple global hotkeys in c# console.</p>
  
  <p>thanks in advance</p>