isTrusted

Returns true if event was dispatched by the user agent, and false otherwise.

MDN Reference