JSFiddle - React, Tailwind, and code Playground

HTML

<input type='text' id='text'>

JavaScript

$( document ).ready( function()
                    {
		              $( '#text' ).on( 'keydown', function() { console.info( 'keydown' ) } ); 	
	}
                    );