event listener for keypress, keydown and keyup
: keypress
: keydown
: keyup