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

# keyImage

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

## Description

Returns a structured text, containing an image or name (if no image is found) of the button, on the keyboard, mouse or joystick, with the given code.

## Syntax

```sqf
keyImage dikCode
```

**Parameters:**

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

**Returns:** [Structured Text](../topics/Structured_Text.md)

## Examples

### Example 1

```sqf
_image = keyImage 28; // result is "Enter"
```

### Example 2

From Arma 3 v2.08:

```sqf
_image = keyImage "-1660944350"; // result is "Right Ctrl+G"
```

## See also

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

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