> For the complete documentation index, see [llms.txt](https://speedtutoruk.gitbook.io/chess-puzzle-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://speedtutoruk.gitbook.io/chess-puzzle-system/support/where-are-inputs-located.md).

# Where are inputs located?

{% hint style="info" %}
References can be found in the:&#x20;

* CPInteractor
* CPInventoryManager
  {% endhint %}

### CPInteractor script

```csharp
void PickupInput()
{
    if (canInteract)
    {
        if (Input.GetKeyDown(interactKey))
        {
            collectableItem.ItemAction();
        }
    }
}
```

### CPInventoryManager script

```csharp
private void Update()
{
    if (disableInventoryOpen)
        return;

    if (Input.GetKeyDown(openInventoryKey))
    {
        isOpen = !isOpen;
        ToggleInventory(isOpen);
    }
    else if (isOpen && Input.GetKeyDown(closeInventoryKey))
    {
        isOpen = false;
        ToggleInventory(isOpen);
    }
}
```
