onEvent

Process an event from the UI. This is the single entry point for all user actions and system events.