JavaScript KeyCodes

Written on May 29, 2015 by Kev

This is a simple JavaScript keycode lookup page. Just press a key and the JavaScript Key Code will be displayed in the box below.

If you want to stop your browser scrolling when you press space or arrows etc then click in this input field to take the focus away from the whole page.

The text equivalent of the key being pressed is only displayed in browsers that support event.key. Rather surprisingly this does not include Chrome!