Hi I'm new to Unreal Engine and having trouble adding a block mechanic to my character. It does the block but it doesn't stay blocking. Can someone help please?

This is me holding down the G button