---
name: "al_key_down"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_key_down"
---

# al\_key\_down(3)

Allegro 5 API

## NAME

al\_key\_down - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_key_down(const ALLEGRO_KEYBOARD_STATE *state, int keycode)
  ```

## DESCRIPTION

Return true if the key specified was held down in the state specified.

## SEE ALSO

[ALLEGRO\_KEYBOARD\_STATE(3)](/ALLEGRO_KEYBOARD_STATE/3.md)
