How to allow player to freely move without facing where the camera is facing when shiftlock is enabled?

Here’s what I’m trying to achieve:

Basically the player shouldn’t always face the direction the camera is when shiftlock is enabled. Help is needed!