I'm having the hardest time with this, I know there are plenty of examples to do this, but I can't seem to get it working.
I have a page that shows a grid of input textboxes. When someone hits tab OR enter in these boxes, I want to fire a function. I'm having trouble finding a cross-browser way to determine what keystroke they pressed. Does someone have a quick function that will catch a keypress in a input box, and depending on if they hit a tab or enter, run some code. I need this to work, at the very least, in IE and Firefox.