Fix bug where movement gets locked in after transitioning from game to
gui