I created a new game using the default template and added this line to the top of on_key_press:
Display("Keycode: %d", keycode);
If I play the game, then hit Ctrl+Q, I see a quick message about the keypress, then the quit dialogue is displayed. If I click the "Play" button with the mouse, the game won't recognise me hitting Escape until I hit another key.
Is this a bug or some feature I don't know about?
Can anyone else test and verify that this happens? I am using AGS 3.3.0.
It's a pretty well known problem with Allegro library:
http://www.adventuregamestudio.co.uk/forums/index.php?issue=378.0
Plan is to update to Allegro 4.4 (and/or aplly a patch).