Steps to reproduce the issue:
Open Minecraft and enter a world.
While the game is loading, use Alt+Tab to switch to another window.
Wait until the game finishes loading the world in the background.
Expected result:
After the game finished loading the world in the background, the cursor wouldn’t stay at the center, and the game would pause automatically.
Actual result:
The cursor stays at the center, the game isn’t paused automatically, and you can even move the camera of the game even if it is in the background; the keyboard won’t work, though.
The cursor issue also occurs if you get hit while the game is minimized