What are the key codes for the right and left arrow keys?
key 13 keycode is for ENTER key.
Alternatively referred to as cursor keys, direction keys, and navigation keys, the arrow keys are usually located between the standard section and the numeric pad on computer keyboards. It is made up of four keys: the left arrow (back arrow), up arrow, down arrow, and the right arrow (forward arrow).
Left: 37, Right: 39.
Discovery of other keycodes can be done with the following code:
$('body').keyup(function (event) { console.log(event.keyCode); });
Which will output the keycode to the console when you press any key.
left key - 37
right key - 39
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With