Often you may need to incorporate keyboard shortcuts into your website. And in modern web applications, keyboard shortcuts have become an integral part of the user experience. If used properly, keyboard shortcuts for things can improve the user’s workflow and in turn, overall experience. Now, traditionally, if you want to use keyboard shortcuts, you may reach for the solution that involves JavaScript keyboard event listeners.
There’s a https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes called accesskey that lets you provide a hint for generating a keyboard shortcut for the current element.