title: Detect when the Tab-Key is pressed using Javascript
body: <p>I would like to detect when the user clicks the tab key on their keyboard, using Javascript.</p>
  <p>I've tried this:</p>
  <pre><code>document.onkeypress = (e) =&gt; {
      console.log(e);
  }
  </code></pre>
  <p>And there it logges keys like letters, numbers and charcters, but not tab, ecs, backspace, enter or other keys like those.</p>
  <p>Is there any way of doing so?</p>
  <p><em>Edit: btw, I can only use pure Javascript for this project, no libraries like jQuery etc.</em></p>