看来我误解了原来的问题。您只想在"D“键上移动,但直到您到达"D”键时,当“D”键被按下时,down...
For browsers that generate keypress events for special keys, it is also generally true that event.keyCode will have the same value for "left-arrow" and "%", however we can usually tell which it is because event.which is zero for special keys (there are problems with this in Opera and ...