move onkeydown to input