Only exit in player mode.  If in editor, just unlock the cursor