Adds KeyboardEvent support (to support unit testing)