* Get the correct modifiers for KEY/MOITION events.
* Static all functions that are private;