Integrate button

Hello everybody. I just started using wled. A great job. I am trying with a led strip divided into 2 segments and I have created two presets. I would like to integrate a button that simply turns me on and off the LEDs. I created a third preset, ID3, entered T = 2 and in configuration Button short press Preset :3.
I connected pin D3 (d1 mini) to the R10k and the normally open button. Once closed it goes towards GND.If I press the button, nothing happens, while if I go to select the ID3 preset, the LEDs turn off. What am I doing wrong. Thank you

It seems to have solved by removing the R 10k …

The resistor should go to 3.3V from the switch/GPIO pin.