Fix IE 8 issue for keydown event.