Keyboard Maestro has a variety of triggers. A trigger describes how you start/execute/run a macro.
The available triggers include: