Button works with space or enter key

Hi, I have the following issue:

The user enters any text to gameobject text and at the bottom he has a button that does anything different (it doesn’t matter) so when he presses the space key or the enter key this button activates and I don’t want that to happen. How can I solve it?

Try setting navigation to “None” (In all your UI elements).165398-navigation.png