I find that in mouse lock mode, there is a certain amount of windows that unlock the mouse but others trap you into no actions.
By hitting the escape key on a windows computer, you close the window that is trapping your keyboard.
You can then turn off mouse lock, and reenter said window.