code: function eventKeyUp(e) {
    var keycode = ('which' in e) ? e.which : e.keyCode;
    keyUp(keycode);
  }
docs: event codes can be found here: http://www.aspdotnetfaq.com/Faq/What-is-the-list-of-KeyCodes-for-JavaScript-KeyDown-KeyPress-and-KeyUp-events.aspx