code: def set_keys(self, keys):
          
          codes = {}
          for key in keys:
              parts = [k.strip().lower() for k in key.split("+")]
              code = KEYS.get(parts[-1])
              modifier = Qt.KeyboardModifiers()
              if code is None:
                  raise KeyError("Invalid key code '{}'".format(key))
              if len(parts) > 1:
                  for mod in parts[:-1]:
                      mod_code = MODIFIERS.get(mod)
                      if mod_code is None:
                          raise KeyError("Invalid key modifier '{}'"
                                         .format(mod_code))
                      modifier |= mod_code
              if code not in codes:
                  codes[code] = []
              codes[code].append(modifier)
          self.codes = codes
docs: Parse all the key codes and save them