JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" class="js-input">

JavaScript

$('.js-input').on('keydown', function(e) {
	console.log('pressing:', e.keyCode);
});