Keystone habits are usually small and result in a “win” for you, which snowballs into greater habit formation and control.
As an example, dieters who keep a food journal are more successful at losing weight.
If you write out a plan about what you’ll do when pain comes knocking on your door, you’ll be more successful at withstanding that pain.