title: Onkeydown not working javascript
body: <p>Here is my code</p>
  
  <pre><code>document.onkeydown = function (a) {
      if (a.which == 13) {
          alert("Not Anymore");
  
      }
  }
  
  document.onkeydown = function (b) {
      if (b.which == 65) {
          auto();
      }
  }
  
  document.onkeydown = function (c) {
      if (c.which == 83) {
          auto2();
  
      }
  }
  </code></pre>
  
  <p>Only the last snippet works can someone explain why this is happening
  check my website and you can see it isnt working when you press a but when you press b it is</p>
  
  <p>Thanks, I appreciate the help and feedback</p>