Add quick&dirty modifier key handling.
Check modifiers in reverse order so the least-modified ends up in the dict.
Clean up output a bit