title: How to play loop an audio clip on button hold up?
body: <p>I would like to have an audio sound plays when you hold the button up arrow key it wil loop my audio clip which is about 10 seconds long, but stops when the arrow key is not being pressed.... Here is my code now</p>
  
  <pre><code>var clickSound = new Audio("img/hartslag.mp3");
  
  document.body.onkeyup = function (e){
  if(e.keyCode == 38){
      clickSound.play();
  }
  }
  </code></pre>