title: .keyup() up and down arrows in Safari
body: <p>I'm trying to attach a <code>.keyup(e)</code> to the up and down arrows. It works fine in Firefox but not in Safari. All of the other arrows work fine in Safari.</p>
  
  <pre><code>$(document.documentElement).keyup(function (event) {
  
          if (event.keyCode == 37) 
          {
          // go left
              $('.left').click();
          } 
          else if (event.keyCode == 39) 
          {
          // go right
              $('.right').click();
          }
          else if (event.keyCode == 38) 
          {
          // next project
              $('a.up div.arrow').click();
          }
          else if (event.keyCode == 40) 
          {
          // previous project
              $('a.down div.arrow').click();
          }
          else if (event.keyCode == 32) 
          {
          // info
              $('aside').click();
          }
      });
  </code></pre>
  
  <p>EDIT:
  A link to a working demo of my website — <a href="http://www.ryan-neil.com" rel="nofollow">http://www.ryan-neil.com</a></p>
  
  <p>Should've added that sooner...</p>