If you want to use the input axis all you need to do is drag out from the float it has and check if it’s equal to 0, if it is then the character is not moving, anything else means that the character is moving/receiving input.
To make it smoother go into CharacterMovement (inherited) and search for Deceleration.
If you have solved your issue with my help then please mark my answer as the correct answer please.