JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://raw.github.com/jeresig/jquery.hotkeys/master/jquery.hotkeys.js"></script>
<html>
<head></head>
<body>
<div>Key Code: <span id="action">Press shift+s...</span>
</div>
</body>
</html>
JavaScript
$(document).bind('keydown', 'shift+s', saveShortcut);
function saveShortcut(){
document.getElementById("action").innerHTML = "Saved!";
return false;
}