diff --git a/kernels/typing-game/game.c b/kernels/typing-game/game.c index 34e7ffc..13fdb0a 100644 --- a/kernels/typing-game/game.c +++ b/kernels/typing-game/game.c @@ -159,6 +159,7 @@ int main() { while (1) { AM_INPUT_KEYBRD_T ev = io_read(AM_INPUT_KEYBRD); if (ev.keycode == AM_KEY_NONE) break; + if (ev.keydown && ev.keycode == AM_KEY_ESCAPE) halt(0); if (ev.keydown && lut[ev.keycode]) { check_hit(lut[ev.keycode]); }