title: Check if any key is pressed Javascript without a form
body: <pre><code>if (any key is pressed){
  Hide a div.
  }
  </code></pre>
  
  <p>I am wondering if there is an easy way to detect if any key is pressed without an input.</p>