def METHOD_NAME(cls, s):
    """ Create a KeySpec from a string joined by '+' characters. """
    codes = s.split("+")
    key = codes[-1]
    modifiers = set(code.lower() for code in codes[:-1])
    ignore = {"alt", "shift", "control"} - modifiers
    return cls(key, *modifiers, ignore=ignore)