Extracts a single event type matching the given key from the FrameEvent union.
String key specifying the event to extract
Extracts a single event type matching the given key from the FrameEvent union.