diff -r bd57fe3f6360 -r 0009b982bc7d src/context.c --- a/src/context.c Tue Jul 01 20:28:49 2025 +0200 +++ b/src/context.c Wed Jul 02 23:21:17 2025 +0200 @@ -187,7 +187,7 @@ case SDL_KEYDOWN: // we only set the down and press flags if the key is not already known to be down if (asc_key_up(event.key.keysym.scancode)) { - asc_set_flag(asc_context.input.keys[event.key.keysym.scancode], ASC_KEY_DOWN_FLAG|ASC_KEY_PRESS_FLAG); + asc_context.input.keys[event.key.keysym.scancode] = ASC_KEY_DOWN_FLAG|ASC_KEY_PRESS_FLAG; } break; case SDL_KEYUP: