# IsKeyDefined

_bool_ **IsKeyDefined**(_string_ **keyName**)\
&#xNAN;_&#x62;ool_ **IsKeyDefined**(_int_ **keyHash**)

## Parameters

**keyName**: The name of the key (`action`), as defined in [`SetKey()`](setkey).\
**keyHash**: The hashcode of the name of the key (`action`), as defined in [`SetKey()`](setkey).

## Returns

**bool**: Returns `true` if `keyName` or `keyHash` exists.

## Description

Use this to determine if a key exists by the name of `keyName` or the hashcode of `keyHash`.

Note that you will probably never need to use this method unless you are a developer making a separate script/plugin and you want to make it compatible with cInput.

## Example
