# AddModifier

_void_ **AddModifier**(_KeyCode_ **modifierKey**)\
&#xNAN;_&#x76;oid_ **AddModifier**(_string_ **modifier**)

## Parameters

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

## 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](../../using-cinput/setting-up-the-default-inputs/using-modifier-keys) for more details.

## Example
