title: Javascript event triggered by pressing space
body: <p>I am trying to get an event to trigger when I am on a page and press <kbd>space</kbd>, but I can't figure it out. Currently I am trying to use jQuery to accomplish a satisfying result.</p>
  <p>I have tried using <code>keydown</code>, <code>keyup</code> and <code>keypress</code>, but it seems that you can only use it if you are actually inputting something to a form or field.</p>
  <p>What I want is to trigger an alert when <kbd>space</kbd> is pressed.</p>