Find something to do with your mouth. May sound funny, but the habit is easier to break if you have some gun, a pen to chew on, really anything to keep your mouth occupied in place of a cigarette. I've had good luck with nicotine lozenges in the past. Not so much the chewing gum.