If I press a button then I use space it presses the button, how can i prevent that?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jujumumu

I have a button and when I use my cursor to click on it to do the function. Then using space which I use as jump when I press space it presses the button since it is selected or something. I only want the mouse to be able to press it nothing else. How could I do that?

:bust_in_silhouette: Reply From: Adam_S

Select your button, then in the inspector click on “focus” proporty, change “mode” to none.