on key preess in input code example Example: html onkeypress <input type="text" onkeypress="myFunction()">