title: Remove keydown delay in JavaScript?
body: <p>Well, when you hold a key on your keyboard, after the first fire there is a 1sec delay. <br />
  You can go ahead and open notepad and hold a key (e.x 'x') you'll see after the first fire there is a delay.</p>
  
  <p>However, I'm trying to develop a game in HTML5 Canvas with JavaScript, and that 1sec delay is very annoying, Additionally, it stops the player walking animation..</p>
  
  <p>So how can I delete that annoying delay in JavaScript ( no jQuery! ) ?</p>
  
  <p>My keydown event works in this pattern -</p>
  
  <pre><code>document.onkeydown = getKey;
  function getKey(e) {
      switch(e.keyCode) {
          case 38: // UP
              Player.PositionY--;
          break;
          case 39: // RIGHT
              Player.PositionX++;
          break;
          case 40: // DOWN
              Player.PositionY++;
          break;
          case 37: // LEFT
              Player.PositionX--;
          break;
      }
  }
  </code></pre>