onKeyUp onKeyDown code example
Example 1: javascript onkeydown
<input type="text" onkeydown="myFunction()">
Example 2: onkeyup in javascript
<input type="text" onkeyup="myFunction()"> //Or your Code
<input type="text" onkeydown="myFunction()">
<input type="text" onkeyup="myFunction()"> //Or your Code