title: Esc key not getting recognized in Firefox
body: <p>For some reason this script isn't working in Firefox:</p>
  
  <pre><code>document.onkeydown=function keypress(e) {
      if (e.keyCode == 27) {
          window.location = "/edit"
      };
  };
  </code></pre>
  
  <p>It works fine in Chrome, but for some reason it's not working in Firefox.</p>
  
  <p>Basically, what it does is load the <code>/edit</code> page when you press the escape key.</p>