Notify me of follow-up comments by email. So as long as you are not using any of the older browsers, the event.key property should be enough for you to identify a key. https://code.jquery.com/jquery-3.5.0.slim.js. Is variance swap long volatility of volatility? Use the key event and Check if the key pressed is Tab (code = 9) to detect the Tab key press event in JavaScript. It depends on: But before we get there, let's see a preview of some of the the useful properties and methods of the KeyboardEvent interface. Returns a string representing a locale string indicating the locale the keyboard is configured for. I think it will be awesome to use it alongside this article and beyond. Bring your documents to our FREE shredding event. Keyboard events are only generated by ,