How do Force-Sensitive Resistors work?
A piece of flexible conductive material with a high resistance is under the tracks, and the resistance between the tracks reduces when the sensor is pressed.

I once made a crude one from a piece of conductive foam, which worked in a similar fashion.

Piezo film is another technique that is sometimes used. I've also experimented with that, and it works very well.