how to access to an input state by the animation blueprint eventgraph or the rule

Hello, I need to make my character beginning of casting a fireBolt if he is not walking or running (for that i’m ok its just basic logics) AND if the shift key is pressed.

I don’t find how to access to the state of a keyboard input by the animationBP.

help plz.

all i found for the moment is this very ugly "solution"