Tests Input.dispatchKeyEvent method.
-----Event-----
type: keydown
keyCode: 65
key: A
-----Event-----
type: keypress
shiftKey
keyCode: 65
charCode: 65
-----Event-----
type: keyup
keyCode: 65
key: A
-----Event-----
type: keypress
keyCode: 1513
charCode: 1513
-----Event-----
type: keydown
shiftKey
keyCode: 16
location: 1
code: ShiftLeft
-----Event-----
type: keydown
shiftKey
keyCode: 16
location: 2
code: ShiftRight
Expect error for invalid text or unmodifiedText:
Error: Invalid 'text' parameter