Pressing F3 toggles the level editor, causing this; press F3 again and restart the level to fix the issue.