How to make the camera aim at the target instantly

Hi, in this script it the camera aims to the target when normalCam is false when its true you can use the cinemachineFreeLook camera normally the script works perfectly but the problem is that the camera moves gradually when it aims to the target but I want it to move instantly is that possibe?

    [SerializeField] private Camera mainCamera;            // main camera object.
    [SerializeField] private CinemachineFreeLook cinemachineFreeLook; //cinemachine free lock camera object.

    private float mouseX;
    private float mouseY;
    public GameObject TargetObj;
 
void Start()
    {
        cinemachineFreeLook.m_XAxis.m_InputAxisName = "";
        cinemachineFreeLook.m_YAxis.m_InputAxisName = "";
    }

    void Update()
    {
        if (normalCam)
        {
            mouseX = Input.GetAxis("Mouse X");
            mouseY = Input.GetAxis("Mouse Y");
        }
        else
        {
            NewInputTarget(TargetObj.transform);
        }
        cinemachineFreeLook.m_XAxis.m_InputAxisValue = mouseX;
        cinemachineFreeLook.m_YAxis.m_InputAxisValue = mouseY;
    }   

    private void NewInputTarget(Transform target)
    {
        Vector3 viewPos = mainCamera.WorldToViewportPoint(target.position);

        mouseX = (viewPos.x - 0.5f) * 8;          
        mouseY = (viewPos.y - 0.5f) * 8;            
    }

I am not sure if this is your issue exactly, but Input.GetAxis has a smoothing factor added to it automatically. If you want it to be immediate, use input.GetAxisRaw:

Unity - Scripting API: Input.GetAxis)%3B%0A%20%20%20%20%7D%0A%7D-,Note,-%3A%20The%20Horizontal