You can read the value of the captouch pads from the MakeCode CRICKIT block group, block
crickit read touch. This will return a value that is the change in value, touched vs. not.
The program below sets up Crickit capacitive touch on pads 1, 2, 3 and 4. It then loops forever - if you touch a pad, it lights a NeoPixel. Pressing Button A clears the NeoPixels.
You can set different actions: if a touch is detected, change the direction of a motor as just one example.
If you touch the capacitive touch pads, the one NeoPixel on the Crickit will glow (pad 1), get broighter (pads 2 and 3) and go out (pad 4).