$(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.