An event is an action or an occurrence that a program can detect. Examples of some events are clicking a mouse button or pressing the key, etc.