A kind of command failure

I often have a situation。

That is, sometimes after cutting the screen back to the game, (sometimes from the technology tree interface back to the matching preparation interface)

The game can not be controlled, any mouse keyboard control is useless for the program.

But it’s not that the computer crashed, it’s just that the game is out of control. I can see that the game continues to work normally (there are no network problems), but any operation of the game program fails.
I can only go to the desktop and close the game。
Have you ever had one?