When I move the game window while typing on the keyboard, it doesn't detect when I release the key

Hello.
Even if I move the game window while operating the keyboard and release the keyboard in the middle, it does not judge that the keyboard has been released.
Does anyone know this measure?
Thank you.

I’m curious in which use case do you need this feature.
I would say this even could be a windows issue/feature/thing.

Thank you for your reply.
This operation is assumed, for example, when using a web browser while operating the game.
Thank you.