Steps to reproduce:
Create/open a world
Switch to Spectator mode:
/gamemode spectator
Enable Customize Controls (Experimental) in Settings -> Controls -> Touch
Attempt to press Customize controls in Settings -> Controls -> Touch
Observed result:
You are unable to customize controls while in Spectator mode. Pressing the info button shows a pop-up that says "Load a world to customize controls", despite already being in a world.
Expected result:
You are able to customize controls while in Spectator mode.
Can confirm in 1.21.20.24 Android