def rule(event):
    if all(
        [
            any(
                [
                    "\\Keyboard Layout\\Preload\\" in event.deep_get("TargetObject", default=""),
                    "\\Keyboard Layout\\Substitutes\\"
                    in event.deep_get("TargetObject", default=""),
                ]
            ),
            any(
                [
                    "00000429" in event.deep_get("Details", default=""),
                    "00050429" in event.deep_get("Details", default=""),
                    "0000042a" in event.deep_get("Details", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
