Need help with JSON commands

I’m trying to use a button for the first time on a new WLED project I’m making. I’d like the short press of the button to increase the brightness by 50, wrapping back around once it reaches 255. I’d like the long press of the button to cycle the leds to the next solid color in a predetermined set of colors. And I’d like the double press of the button to cycle between certain presets.
I’ve read through the wled website on json and have tried to figure out how to do this but I’m stuck.
Can someone help me with what to do? Thank you!

Start by creating presets that perform the functions you want.

Brightness cycle: save {"bri":"w~50"} in a preset.
Colour cycle, create presets for list of colours and cycle presets: save {"ps":"4~9~"} (assumes colour list is in presets 4->9)
Preset cycle, see colour cycle

You can activate the presets directly to make sure they do what you want and then link them to the button press.

IR remotes use a similar technique, you can get an idea of what’s possible by checking out the IR.json files for examples.

Thank you so much!!! This is really helpful and I added it to my word and it’s been working so far. I really appreciate it!