---
name: "isKeyActive"
type: command
status: ok
groups: ["Mission Information"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isKeyActive
revid: 319058
updated: 2022-05-13T09:23:07Z
---

# isKeyActive

*Command · Mission Information · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

## Description

Checks whether the given key is active in the current user profile.

See keys, keysLimit and doneKeys in the [description.ext](../topics/Description.ext.md#keys) file of the missions.

## Syntax

```sqf
isKeyActive keyName
```

**Parameters:**

- `keyName`: [String](../topics/String.md)

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

```sqf
_active = isKeyActive "Mission04Key";
```

## See also

[activateKey](../commands/activateKey.md) · [deActivateKey](../commands/deActivateKey.md)

<sub>Source: [BI Community Wiki — isKeyActive](https://community.bistudio.com/wiki/isKeyActive) (revision 319058).</sub>
