i put a print string before the casting. it doesnt print because the button doesnt actually press even though I pressed it. the problem only occurs mainly when my character lands on the ground and then I click the button. it works most of the time but sometimes just doesnt. But again why would code in a separate blueprint stop me pressing the button?