How to prevent the Button from being pressed when pressing "Space" in godot3.5?

When using godot,I met a problem.After I pressed a button,the button could be pressed if I pressed "Space".How can I solve this problem.Thank you if you give me a hand!