Make animation work with button down

im trying to make an animation work with just on push of a button but the problem is somehow it didnt work i tried everyhting such as adding branch and etc but still doesnt work take a look on the event graph
Screenshot (142).jpg
Screenshot (143).jpg

there are 3 states in the anim graph first is idle,walking and running for running is simple is using aboolean is running and not for walking the speed variable has to be more than 10 so whats wrong with my blueprint?am i doing something wrong?