SDL_GetKeyboardState() eats first keystroke on Mac?

I have SDL2 v. 2.26.2 and my code enters the typical event loop polling events and then also calling SDL_GetKeyboardState() to capture the specific keyboard state.

On the Mac it seems the very first keystroke is never returned from SDL_GetKeyboardState(). Click a 2nd key and then SDL_GetKeyboardState() returns the keypress and does so from then on.

Tried removing the polling loop (SDL_PollEvent()), tried calling SDL_PumpEvents() instead, tried SDL_ResetKeyboard()…

I don’t see anything like this on the Windows build. Guessing an SDL2 bug. Anyone have a workaround?