---
name: "keyName"
type: command
status: ok
groups: ["System"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/keyName
revid: 338910
updated: 2023-04-17T14:36:36Z
---

# keyName

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

## Description

Returns the name of a button with extra quotation marks (on the keyboard, mouse or joystick) with the given code.

## Syntax

```sqf
keyName dikCode
```

**Parameters:**

- `dikCode`: [Number](../topics/Number.md) or Arma 3 v2.08 [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
_name = keyName 28; // result is """Enter"""
```

### Example 2

From Arma 3 v2.08:

```sqf
private _name = keyName "-1660944350"; // result is """Right Ctrl+G"""
```

## See also

[keyImage](../commands/keyImage.md) · [actionKeys](../commands/actionKeys.md) · [actionKeysImages](../commands/actionKeysImages.md) · [actionKeysNames](../commands/actionKeysNames.md) · [actionKeysNamesArray](../commands/actionKeysNamesArray.md) · DIK KeyCodes

## Community notes

**POLPOX** — 2020-04-28

The return value is different per keyboard/IME settings.

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