# Drawstep engine · Statics & layers · `cantHaveKeyword` > Cant have keyword — Lose and cannot have or gain this keyword, even from later grants (CR 613.1f, 101.2). Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/statics#cantHaveKeyword ## Where it goes The `effect` of a static ability (or one of its `effects`): `{ "kind": "static", "effect": { "type": "cantHaveKeyword", … } }`. Applied continuously through the layer system. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `to` | `TargetDef` | yes | What it applies to (TargetDef) | | `keyword` | `string` | yes | A plain keyword string ("Flying", "Haste" …) as in `keywords[]` | ## Minimal form ```json {"type":"cantHaveKeyword","to":{"of":"object","mode":"self"},"keyword":"Flying"} ``` The engine reads that minimal form as: “~ loses flying and can't have or gain flying”. ## Stock examples - **Hexproof Denial** — “” ```json {"type":"cantHaveKeyword","to":{"of":"object","mode":"all","filter":{"types":["Creature"],"controller":"opponent"}},"keyword":"Hexproof"} ``` ## Related - [Statics & layers](https://drawstep.xyz/wiki/mtg/statics.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive