The game disables my keyboard

It happened once yesterday and just now. My keyboard stops responding midgame, specifically it happened when i respawned. It stops working completely (even outside the game) and i have to reconnect it to return it to normal. This never happened with any game or program before. I’m on win11 with usb keyboard, i don’t have any other input devices connected besides the mouse.