Button is hooked with the space key

How can I solve that?

Hi, in the editor all buttons handle the space key by default to remain consistent with the rest of the editor. If you want to change this behavior you can intercept the KeyDownEvent and stop the event propagation.

button.RegisterCallback<KeyDownEvent>((evt) =>
{
        if (evt.keyCode == KeyCode.Space)
            evt.StopPropagation();
}, TrickleDown.TrickleDown);

At runtime you can go in the input manager and change what is mapped to the “Submit” action.

Your code didn’t work. This works though:

root.RegisterCallback<NavigationSubmitEvent>((evt) =>
{
    evt.StopPropagation();
}, TrickleDown.TrickleDown);

There’s also a Cancel- and MoveEvent which might interest you.