def METHOD_NAME(self, event):
    """
    Returns True if the given Enable key_pressed event matches this key
    specification.
    """
    return (
        (self.key == getattr(event, "character", None))
        and ("alt" in self.ignore or self.alt == event.alt_down)
        and (
            "control" in self.ignore or self.control == event.control_down
        )
        and ("shift" in self.ignore or self.shift == event.shift_down)
    )