Staying off them is hard if you have an abundant source of temptations around you. The hardest part of following the keto diet, for me, was to avoid so many things I love to eat - when they are present around me. If I came across a freshly baked baguette, the temptation to buy it and gobble down the whole thing was immense. Likewise for many other things.
Ultimatley, what kept me on track was the improvements I was seeing in the gym. I did, however, always acknowledge that was fighting the temptation to cheat quite often.