title: Only Execute if Key is pressed Once
body: <p>I have the following code:</p>
  
  <pre><code>onkeyup = function(e) {
                  if (e.keyCode == 77) { // the 'm' key
             setTimeout(function () {
              ... // my set timeout stuff
              }
  </code></pre>
  
  <p>The problem is that every time I press the m key, my setTimeout re executes. 
  How can I keep it so that only if I <strong>press &amp; hold</strong> <strong>once</strong>, the setTimeout executes. (any more times and nothing should executed). </p>
  
  <p>Thanks, should be simple enough I hope. </p>