> For the complete documentation index, see [llms.txt](https://fast-studios.gitbook.io/press-e/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fast-studios.gitbook.io/press-e/manual/components/key.md).

# Key

Add **keys** to be used as **conditions** on objects. For instructions on using a **Key** as a condition, see **Conditions**.

## Main Tab

* **Key Name**: assigns a **name** to the key; later, the system can check if the player already obtained **a key with this name**.
* **Can Interact**: when **on**, the **Interaction Manager** detects when the player looks at the Key and **auto-picks** it.
  * When **off**, you handle pickup manually—for example, using a **Unity Event** Interactable that calls the Key script’s [**Interact**](/press-e/manual/components/interactable.md) method, shows **world prompts**, and/or triggers extra events.
  * Also useful to **prevent** the player from grabbing the Key **directly** without your custom logic.

## Events Tab

* **On interact**: fired when **interacting** with the Key.
* **On Use**: fired when **using** the Key.

## Settings Tab

### Main Settings

* **Add Key When Interact**: adds the Key to the system’s **default obtained-keys list** (recommend **off** if you have your own inventory/keys system).
  * **Remove Key When Used**: removes the Key from that list **when it is used**.
* **Disable Object When Interact**: makes the Key’s **GameObject** **disappear** (deactivate) when the player picks it up.

### Destroy Key When Used

Controls **destroying the Key GameObject** upon use.

* **Specific**: restrict destruction to **specific interactions** (one or more Interactables).
* **Specific Method: Specific | Specifics**: choose **single** Interactable (**Specific**) or a **list** (**Specifics**).
* **Specific Interactable**: assign the **single Interactable** allowed to **destroy** this Key.
* **Specific List**: assign the **Interactables** allowed to **destroy** this Key.
