JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id ="txtClient" value="aaaa" />
JavaScript
$('[id$=txtClient]').keydown(function (e) {
//if is not a left or right arrow key
console.log(e.which);
if (e.which == 222 || e.which == 163 || e.which == 191){
e.preventDefault();
}
});