JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://github.com/tzuryby/jquery.hotkeys/raw/master/jquery.hotkeys.js"></script>
<div id="saveInfo">
<div>
<input type="text" maxlength="30" tabindex = "1" />
<br>
<input type="text" maxlength="30" tabindex = "2" />
<br>
</div>
<div>
</div>
<div>
<input type="button" name="saveBtn" id="saveBtn" value="Save" tabindex ="4"/>
</div>
JavaScript
$(document).ready(function() {
$(document).bind('keydown', function() {
alert("S pressed :: SaveInfo() function call");
});
});