I was doing something like that. It ended with discussion:
See Key.png attached to my first post there.
I made keys like that and to satisfy KiCad I later added (at PCB stage) traces to connect rectangle pads of my footprint.
There is the way to define custom pads but I have never tried. Look through FAQs - you will probably find there something about it.
He shows how to create a custom pad shape by manually adding the geometry in the pad menu, and then later wishes it could just be drawn on the screen. Well it can!
Seems like making custom pads is as easy as drawing the shape on the Dwgs.user layer and then putting a regular old SMT pad inside the shape and then selecting both the pad and your complicated drawing, right-clicking and selecting “Create Pad from Selected Shape” - boom!
So huge thanks to the kicad team for solving this in a very nice way.
Oops, I saw this post earlier and wanted to respond, but it slipped my attention. Footprint Editor / file / Create Footprint brings you into the wizard section and there is also a wizard for capacitive sliders:
And in there you can enter some parameters for a custom shaped capacitive slider: