Added a search function for events by subevent key