Updated to use property accessors as it looks like future chromeis not allowing creation of KeyboardEvent via the constructor