getLastEventName method for EventHandlers