how to use on key down in html code example Example: javascript onkeydown <input type="text" onkeydown="myFunction()">