Is it possible to give button reference?? if yes then how to do it????

Hello,

I just wanted to ask that is it possible to give button reference cause when I promoto to variable and set its type to Button reference that really doesn’t do anything. What I was actually trying to do…if I press a button (any alphabet button) then I set (Swordattack) flipbook but when I press forward movement (movement component) and then pressing a button for (Swordattack)flipbook then its playing that (action)Flipbook and also moving forward but the animation will be the (Swordattack)Flipbook…but what I want is if I am moving forward(pressing input action for moving forward) and pressing a key for sword attack then he should only run he should not play sword attack animation. any idea I am till trying it but if you have any simple way to do it let me know.