Fixed cross-browser key events (hopefully).