Are You sure it is Event.Key.KeySym.Mod not Event.Key.KeySym.Modifier?