Keyboard Event Support

This page outlines browser support for KeyEvent and KeyboardEvent.

The results are based on the accompanying support test.
"object" shows whether the constructor is exposed as a global.
"create" shows whether you can create an event using document.createEvent().

Browser KeyEvent KeyEvents KeyboardEvent KeyboardEvents
object create object create object create object create
IE 6 no no no no no no no no
IE 7 no no no no no no no no
IE 8 no no no no no no no no
IE 9 no no no no yes yes no no
IE 10 no no no no yes yes no no
Firefox 3.6 yes no no yes yes yes no no
Firefox 4+ yes no no yes yes yes no no
Opera 11.5 no no no no no no no no
Opera 11.6 no no no no no no no no
Opera 12 no no no no mixed yes no no
Chrome 22 no no no no yes yes no yes
Safari 4.0 no no no no yes yes no yes
Safari 5.0 no no no no yes yes no yes
Safari 5.1 no no no no yes yes no yes

Note: Opera 12 returns a false negative for "KeyboardEvent" in window until you call document.createEvent( "KeyboardEvent" ). This is fixed in Opera Next.