key handling done by allegro