fix input keydown events