Add extensions
Click “Advanced” in the MakeCode to see more choices.

Search with Wukong in the dialogue box to download it.

Result
When button A is pressed, the seesaw operates automatically and when button B is pressed, the seesaw shuts down and stops operating.