Use enum types for event modifier and types, `wmEventModifierFlag` & `wmEventType` respectively. This helps with readability and avoids unintended mixing with other types. To quiet GCC's `-Wswitch` warnings many `default` cases needed to be added to switch statements on event types. Ref !136759