CharacterController.Move() behaving inconsistently

This is what I have:

   using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.InputSystem;
    public class PlayerController : MonoBehaviour
        private CharacterController controller;
        private Vector3 moveVector;
        public float moveSpeed;
        public float jumpForce;
        private void Awake()
            controller = GetComponent<CharacterController>();
        private void Update()
        private void OnMove(InputValue value)
            moveVector = new Vector3(value.Get<Vector2>().x, 0f, value.Get<Vector2>().y) * moveSpeed *   Time.deltaTime;

This results in inconsistent movement speed and sometimes not stopping when the movement key is released. I checked the inputs values and they are coming in fine so I’m not sure where/what the problem is.

It is probably because you are not getting the input values in Update function but via the events, it can not get the values for every frame like Update does, which causes the inconsistency