JSFiddle - React, Tailwind, and code Playground
HTML
<input id="my-input" type="text" />
<div id="keys">
</div>
JavaScript
$('#my-input').bind('input keyup', function(event){
$('#keys').append('<p>', String.fromCharCode(event.keyCode), '</p>');
});