title: jQuery Keyboard shortcut plugin unbind does not work in my demo but does not show any errors
body: <p>I am trying to use this <strong>jQuery Keyboard shortcuts plugin</strong> <a href="https://github.com/jeresig/jquery.hotkeys" rel="nofollow">https://github.com/jeresig/jquery.hotkeys</a> in my JavaScript app.</p>
  
  <p>I am having an issue where the bind method which enables the event listener to start listening for my key presses works however the <code>unBind</code> method does not seem to be working.</p>
  
  <p>Here is an example:  <a href="http://jsfiddle.net/80k2uf3w/13/" rel="nofollow">http://jsfiddle.net/80k2uf3w/13/</a></p>
  
  <pre><code>// Enable our keyboard shortcut for the "number 1 key"
  function bindOneKey(){
      alert("keyboard Event listener is now listening for key number 1 to be pressed!");
      jQuery(document).bind('keydown', '1',function (evt){
          alert("keyboard key number 1 was pressed");
          return false;
      });
  }
  
  // Disable our keyboard shortcut for the "number 1 key"
  function unBindOneKey(){
      jQuery(document).unbind('keydown', '1');
      alert("keyboard Event listener for key number 1 has been killed!");
  }
  
  // Demo buttons to enable/disable our Keyboard shortcut Event listeners
  $(document).ready(function(){
      $('#bindOne').bind('click', bindOneKey);
      $('#unBindOne').bind('click', unBindOneKey);
  }
  </code></pre>
  
  <p>HTML Buttons for Demo  </p>
  
  <pre><code>&lt;input type="button" id="bindOne" value="Bind 1 keyboard key" /&gt;
  &lt;input type="button" id="unBindOne" value="unBind 1 keyboard key" /&gt;
  </code></pre>
  
  <p>On that demo page after pressing the <code>bind 1</code> button, you can then press the number 1 key on your keyboard and get an alert from the callback function.</p>
  
  <p>After that if you press the <code>unbind 1</code> button and then press the <code>1 key</code> again, it still works instead of un-binding it!</p>
  
  <p><strong>Does anyone know what the problem could be?</strong></p>
  
  <p>This is just the most basic demo to show the functionality and the problem.  My real app will basically enable the keyboard shortcuts when a Modal is opened and then disable/unbind them when the Modal is closed.  That is why i need to get this working.  </p>
  
  <p>My other option is to find a new Keyboard shortcut library, there are about 50 of them it seems but I liked this one because it seems to be pretty lightweight and also built by a very well know JavaScript developer.  So I am posting here to see if we can get this one working 100% first.</p>
  
  <p>One thing to note is that on the GItHub page for the library it seems the test files are using a <code>jQuery v1.4.x</code> older version, perhaps that could be part of the issue but I am not sure as majority of the library works and also I get no console errors!</p>
  
  <p>Thanks for any help</p>