shim the necessary parts of KeyboardEvent in workers