what is keydown and keyup in js code example Example: javascript on keypu <input type="text" onkeyup="myFunction()">