JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="txtClient" value="aaaa" />
JavaScript
$('#txtClient').keypress(function (e) {
console.log('keypress:', e.which);
if (e.which == 35) {
return false;
}
});