Used Object.create to define the KeyboardEvents interface.