Is there any way I could make a shift lock that doesn't lock the mouse?

Is there a way I can have the player’s character face the player’s camera?