diff --git a/src/game/scenes/mainmenu/menu_presskey.c b/src/game/scenes/mainmenu/menu_presskey.c index 4096ed453..3329e207b 100644 --- a/src/game/scenes/mainmenu/menu_presskey.c +++ b/src/game/scenes/mainmenu/menu_presskey.c @@ -79,7 +79,7 @@ void menu_presskey_tick(component *c) { // See if a key has been pressed int keys = 0; const unsigned char *state = SDL_GetKeyboardState(&keys); - for(int i = 0; i < keys; i++) { + for(int i = SDL_SCANCODE_A; i < keys; i++) { if(state[i]) { if(is_key_bound(i) && strcmp(SDL_GetScancodeName(i), *(local->key)) != 0) { // Set texts to red as a warning