-uitrace command-line option

Defines a set of user-interface events to trace.

Examples
Trace window and key events. -uitrace Window,Key Trace all events. -uitrace All