SetFocusToGameViewport will put focus back on the viewport widget. If it’s not the buttons, you probably have another widget higher up that’s becoming focused, user widgets can also be made focusable. You could enable always showing the focus rectangle in your user interface project settings to see which widget has the focus. I believe the widget reflector also has this capability.