---
name: "BIS_fnc_3den_onKeyDown"
type: function
status: ok
groups: ["KeyframeAnimation"]
arma3_since: "1.56"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_3den_onKeyDown
revid: 363331
updated: 2024-03-27T09:38:04Z
---

# BIS_fnc_3den_onKeyDown

*Function · KeyframeAnimation · Arma 3 v1.56*

## Description

Used internally by the Arma 3: Key Frame Animation system. Called when a button is pressed.

## Syntax

```sqf
[display, button, shift, ctrl, alt] call BIS_fnc_3den_onKeyDown
```

**Parameters:**

- `display`: [Display](../topics/Display.md) - the display
- `button`: [Number](../topics/Number.md) - key code of the pressed button
- `shift`: [Boolean](../topics/Boolean.md) - <kbd>Shift</kbd> key
- `ctrl`: [Boolean](../topics/Boolean.md) - <kbd>Ctrl</kbd> key
- `alt`: [Boolean](../topics/Boolean.md) - <kbd>Alt</kbd> key

**Returns:** [Boolean](../topics/Boolean.md) - whether or not to consume the input

## Examples

### Example 1

```sqf
findDisplay 313 displayAddEventHandler ["keyDown", { _this call BIS_fnc_3den_onKeyDown }];
```

## See also

Arma 3: Key Frame Animation

<sub>Source: [BI Community Wiki — BIS fnc 3den onKeyDown](https://community.bistudio.com/wiki/BIS_fnc_3den_onKeyDown) (revision 363331).</sub>
