JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="usersSearch" />
JavaScript
$('#usersSearch').keypress(function(e){
if(e.which == 13){//Enter key pressed
alert('Enter pressed: Submitting the form....');
}
});