Custom camera issue

Im making a custom camera with its own shift lock, everything works but in shift lock mode the camera can only be moved by holding down right mouse and im not sure how to make it move without holding rmb

function shiftLock(active)
    if active then        
        hum.CameraOffset = Vector3.new(1.75,0,0) 
        hum.AutoRotate = false 
        RunService:BindToRenderStep("ShiftLock", Enum.RenderPriority.Character.Value, function()
            InputService.MouseBehavior = Enum.MouseBehavior.LockCenter 
            local _, y = workspace.CurrentCamera.CFrame.Rotation:ToEulerAnglesYXZ() 
            RootPart.CFrame = CFrame.new(RootPart.Position) * CFrame.Angles(0,y,0) 
        end) 
    else
        hum.AutoRotate = true 
        RunService:UnbindFromRenderStep("ShiftLock") 
    end
end

You could do on mouse move event with input service (called input changed)