Fixed cross-browser keycode issue