Make key events supported on multiple browsers.