This tests that DOMKeyboardEvents are created correctly in the JavaScript API.