key down in javascript w3 schools code example Example: javascript onkeydown <input type="text" onkeydown="myFunction()">