title: Keydown not working for my eventlistener
body: <p>I am confused as to why when I press a key, my function is not logging the keydown event? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>window.addEventListener('keydown', function(e) {
    console.log(e);
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt; Start typing &lt;/h1&gt;</code></pre>
  </div>
  </div>
  </p>