How to bind key with a funciton within widget blueprint?

yeah sure ok so your getting the input you just made, then after that you are going back to the widget you made, and at that widget you are making a bool(boolean), then going back to the blueprint that you are calling the input, then you get a cast to(try casting it to the widget you have) then connect it to were you get the input(the one part that says press)