A + D input

I made a 2d character giving just 2 animation, idle and walk, when i press A or D the character walks normally but if i click them at the same time he start walking in place… and if i release A or D he start walking with idle animation.
Could you please explain me exactly how to solve this problem… (here is my character blueprint)

Idle should not be caused by releasing a button, Idle should be caused by an input axis being NearlyEqual to 0.