> For the complete documentation index, see [llms.txt](https://cmonkeys.gitbook.io/cinput-reference-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cmonkeys.gitbook.io/cinput-reference-manual/script-reference/methods/setkey.md).

# SetKey

*void* **SetKey**(*string* **description**, *string* **primary**, \[*string* **secondary**], \[*string* **primaryModifier**], \[*string* **secondaryModifier**])

## Parameters

**description**: The description of what the key ([`action`](/cinput-reference-manual/using-cinput/a-brief-explanation-of-cinput.md)) is used for.\
**primary**: The primary input to be used for this `action`.\
**secondary**: *Optional*. The secondary input to be used for this `action`. Defaults to `None`.\
**primaryModifier**: *Optional*. The modifier key to be used for the primary input.\
**secondaryModifier**: *Optional*. The modifier key to be used for the secondary input.

## Returns

**int**: The hashcode of `description`.

## Description

Defines the default input settings for the `action`.

**Never use SetKey to change actions!** Use [`ChangeKey()`](/cinput-reference-manual/script-reference/methods/changekey.md) for that.

## Example
