I’ve confirmed that this only happens when using Windows shortcuts (in my case, Shift + Alt + 1–4). When switching via the taskbar and returning to the game, GZDoom doesn’t lock up.
Below is a list of my keyboard layouts, if relevant:

(Swedish, Croatian, Serbian, Russian)