Allegro 5 api
#include <allegro5/allegro.h> bool al_key_down(const ALLEGRO_KEYBOARD_STATE *state, int keycode)
Return true if the key specified was held down in the state specified.
ALLEGRO_KEYBOARD_STATE(3alleg5)