The main idea of event-based programming is the management of the application
execution flow on the events occurred around it that can affect its behavior,
such as user actions (mouse click, pressing a key, etc.) or messages from other
programs, including the operating system. These applications detect the events
and