Fix keydown issue