In software development, event handling is the process of detecting and responding to events (keystrokes, clicks, USB connections/disconnections, network activity, …)
An event handler is a function or method that is executed in response to an event.