How to set "gun mode" on clicked a input?

What I want to know is how to turn into a new animation blueprint when I click on a input.
I want to be ingame with my idle animation, then use my “gun” input and to come to my “gun idle” animation, when I run to use my “run idle” animation.