JSFiddle - React, Tailwind, and code Playground
JavaScript
$('body').on('keydown',function(e){
var tecla = e.keyCode || e.which;
alert(tecla);
});
$('body').on('keydown',function(e){
var tecla = e.keyCode || e.which;
alert(tecla);
});