title: Disable a key after functions are executed
body: <p>So basically I want the first the key ("q") to initializes the setTimeouts, then I want to <strong>disable it from being pressed again</strong> while the setTimeouts are running, then when the setTimeouts are over, re-allow it to be pressed again.</p>
  
  <pre><code>$(document).keydown(function(e) { 
      // if 'q' key is pressed, initalize setTimeouts
      if (e.keyCode == 81) {
          var rock = $('#rock');
  
          // disable 'q' key while setTimeouts are running          
          setTimeout(function () {
              rock.css('background-position', '-34px -0px');
              setTimeout(function () {
                  rock.css('background-position', '-66px -0px');
                  setTimeout(function () {
                      rock.css('background-position', '-96px -0px');
                  }, 300);
              }, 300);
          }, 300);
          // re enable 'q' key when setTimeouts are done      
      }
  });
  </code></pre>
  
  <p>Any ideas?</p>