> 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/addmodifier.md).

# AddModifier

*void* **AddModifier**(*KeyCode* **modifierKey**)\
*void* **AddModifier**(*string* **modifier**)

## Parameters

**modifierKey**: The `KeyCode` of the key to be used as a modifier.\
**modifier**: The [string name](/cinput-reference-manual/script-reference/valid-inputs.md) of the key to be used as a modifier. Allows you to use [the `Keys` class](/cinput-reference-manual/using-cinput/setting-up-the-default-inputs/the-keys-class.md).

## Description

Designates `modifier` or `modifierKey` to be used as a modifier. **Note that a modifier key cannot be used as a standalone input key**. See [Using Modifier Keys](/cinput-reference-manual/using-cinput/setting-up-the-default-inputs/using-modifier-keys.md) for more details.

## Example
