JSFiddle - React, Tailwind, and code Playground
HTML
<FORM action="http://somesite.com/prog/adduser" method="post">
<P>
<LABEL for="firstname">First name: </LABEL>
<INPUT type="text" id="firstname" /><BR/>
</P>
</FORM>
JavaScript
document.getElementById("firstname").onkeydown = function myFunction(e){
var keyCode = (window.event) ? e.which : e.keyCode;
if (keyCode == 65){
this.value ="ض";
return false;
}
}