types of events
Keyboard event
Mouse event
Resize event
terminal closed or interrupt (Ctrl+C)
See Implementation
types of events