title: JavaScript key holding down and release
body: <p>I can control my bot through web. These are its url-</p>
  <ul>
  <li><strong>forward</strong>-  <a href="https://172.0.0.1/forward" rel="nofollow noreferrer">https://172.0.0.1/forward</a></li>
  <li><strong>backward</strong>- <a href="https://172.0.0.1/backward" rel="nofollow noreferrer">https://172.0.0.1/backward</a></li>
  <li><strong>left</strong>-     <a href="https://172.0.0.1/left" rel="nofollow noreferrer">https://172.0.0.1/left</a></li>
  <li><strong>right</strong>-    <a href="https://172.0.0.1/right" rel="nofollow noreferrer">https://172.0.0.1/right</a></li>
  <li><strong>stop</strong>-     <a href="https://172.0.0.1/stop" rel="nofollow noreferrer">https://172.0.0.1/stop</a><br></li>
  </ul>
  <p>I am using html button to do this.
  But I want to control it with &quot;arrow&quot; key of keyboard.
  My idea is if I press and hold <strong>up arrow</strong> key then the bot will go <strong>forward</strong>(<a href="https://172.0.0.1/forward" rel="nofollow noreferrer">https://172.0.0.1/forward</a>) and if I release the <strong>up arrow</strong> key then the bot will <strong>Stop</strong>(<a href="https://172.0.0.1/stop" rel="nofollow noreferrer">https://172.0.0.1/stop</a>) going.
  and the same thing to</p>
  <ul>
  <li>backward - &quot;down arrow&quot;</li>
  <li>left- &quot;left arrow&quot;</li>
  <li>right-&quot;right arrow&quot;</li>
  </ul>
  <p>I'm not familiar with JavaScript Can you please help me...</p>