reverted onkeydown and onkeyup