Add synthetic events to locals.
Add KMOD_ constants to locals.
Alias .locals as .constants.