test(dom): Add createKeyboardEvent test helper.
test(dom): Add createKeyboardEvent test helper.

PiperOrigin-RevId: 317172279

material-components/material-components-web,material-components/material-components-web,material-components/material-components-web