It's related to minimising the game.

For some reason, hitting alt+tab will lock the game in 'alt mode'.

You'll notice that selecting units does not operate as normal either.

A restart (of the game) fixes it.