The Bug:
Opening a screen while in a world automatically focuses a button if the tab or arrow keys was used previously.
This issue was introduced in 26.4 Snapshot 4. Before 26.4 Snapshot 4, opening a screen from the world forgot the last input type, so the pause menu and inventory opened with nothing focused. 26.4 Snapshot 4 removed that reset, meaning that the next screen opens with its first button focused.
Steps to Reproduce:
Load into a world.
Open the chat, press the up arrow key (or Tab) once, then press Esc key to close the chat.
Press the Esc key to open the pause menu.
Observe if the "Back to Game" button has the white focus outline.
Observed Behavior:
The pause menu opens with its first button focused.
Expected Behavior:
Screens opened from the world would open with nothing focused, just like they did in 26.3.