JSFiddle - React, Tailwind, and code Playground
HTML
<input id="mouseTest" width="200" height="200" style="border: solid 1px red;"/>
JavaScript
var input = document.getElementById('mouseTest');
input.addEventListener('keydown', function(event) {
console.log(event);
});