modifiers_mask/2
     modifiers_mask(?Modifiers, ?Mask)
     

Translates between modifier specifications and the corresponding integer bitmask.

Modifiers is a term of the form modifiers(Shift, Control, Lock, Mod1, Mod2, Mod3, Mod4, Mod5), where the value of each argument is either up or down.

Mask is the integer bitmask representing the given set of modifiers.