event

An action recognized by an object, such as clicking the mouse or pressing a key, and for which you can write code to respond.  Events can occur as a result of user action or program code, or they can be triggered by the system.