title: Greasemonkey Javascript Key Press
body: <p>I'm currently trying to make a GreaseMonkey script that will allow a user to press left or right on their keyboard and have that go to a previous comic strip or go to the next strip. I currently have some code up but it's not giving me any results.</p>
  
  <pre><code>function KeyCheck()
  {
  var KeyID = event.keyCode;
  alert(KeyID);
  }
  
  document.onKeyDown = KeyCheck();
  </code></pre>
  
  <p>The code is just for debugging to see if it's actually executing but when I press a key nothing will happen on the page. I'm testing in Firefox also.</p>