In Class defaults just find bool variable with name Use controller Rotation yaw. While is true then is Rotation of Character mesh reset to default value (e.g. -90), but when is false then rotation after input is stopped in position of current state and it doesnt reset it.