keyup problem with 1.4?

keyup problem with 1.4?

Hi everyone,

I have a page set to move forward and backwards through the months of a calendar when the user presses the forward or back arrow keys. I had this code working fine in 1.3.2, but have been testing with 1.4.2 and now it seems that the keys are being fired over and over again. Is there a problem with my code? Something I need to update to work with 1.4.2? Or is this a 1.4.2 bug?

Here's my "keyup" code (which is inside doc ready):

$(document.documentElement).keyup(function (event) {
  if (event.which == 37) {//left arrow
ajaxLoad($('#myLeftArrow').attr('href'))
  } else if (event.which == 80) {//p key
ajaxLoad($('#myLeftArrow').attr('href'))
  } else if (event.which == 39) {//right arrow
ajaxLoad($('#myRightArrow').attr('href'))
  } else if (event.which == 78) {// n key
ajaxLoad($('#myRightArrow').attr('href'))
  }
});

ajaxLoad() is another function that loads the calendar month into my page. I also have it check for a press of the "n" or "p" keys, for Next and Previous.

Thanks!

PS I am testing in FF 3.6.3