A Complex Thing: Keyboard Event?
Have you checked the keyCode for keyDown, keyPress, and keyUp events of browsers? The values of them are different. Some of them are ASCII code and some of them are printable key code, what?! We can find the detailed rules here. we can check this to know more about JavaScript keyboard event
It would be nice to have a page to test it. John Hu had created one for this purpose. Since the modern browsers will repeat the keyDown and keyPress, this page prints keyDown and keyPress while you hold the keys.