fix keydown event