JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<table tabindex="-1">
<tr>
<td>Some text</td>
<td>Some text</td>
<td>Some text</td>
</tr>
</table>
</div>
JavaScript
$('div').keypress(function(e){
console.log(e.which);
});