JSFiddle - React, Tailwind, and code Playground
HTML
<input id="input_1" type="text" /><br />
<input id="input_2" type="text" /><br />
<input id="input_3" type="text" /><br />
<input id="input_4" type="text" /><br />
<input id="input_5" type="text" />
JavaScript
// focus find out the input that we are focusing to
$('input').on('keydown', function (event) {
alert(event.keyCode);
});