Freeze player during attack?

So the player presses m1 and the attack happens. I’m new to Gdevelop and don’t know a lot jest the very basics, I want to know if there’s a way for the character to not move during an attack.

not move? do you mean not respond to keypress?
you can usr a variable to check is there is an attack in course