JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test" style="width:100px; height:100px; background-color:#ff0000" tabindex="0"></div>
JavaScript
$("#test").hover(function() {
this.focus();
}, function() {
this.blur();
}).keydown(function(e) {
alert(e.keyCode);
});