Implement KeyboardEvent deserialization