You shouldn’t use the input Axis, what you need is the motion velocity using “Get Velocity” from your character.
Then it returns a 3D vector that you simply break and get the X component.
If X<0 is going Left.
if X>0 is going Right.
if X=0 there is no horizontal motion.