title: How to make escape key change url?
body: <pre><code>$(document).keyup(function(e) {
      if (e.keyCode == 27) { ... } 
  });
  </code></pre>
  <p>The previous code is a code I found that determines if the <kbd>escape</kbd> key is pressed and released; however, I've never used code like this before.</p>
  <ol>
  <li>I was wanting to find out if this was an okay code to use as far as security and performance?</li>
  <li>I wanted to find out how to make this change the page url?  Basically, when they press the esc key and let go, it changes to the login page.</li>
  <li>Is there a better way to do this?</li>
  </ol>