If you're trying to cut back on eating, there are plenty of things you can do instead of raiding your kitchen.
First, try drinking a glass of water or another calorie-free beverage. This will help you feel full and may prevent you from overeating. You can also try chewing gum or sucking on hard candy to help stave off hunger pangs.
Second, distract yourself with something else. Call a friend, read a book, or take a walk. Getting your mind off of food will make it easier to stick to your goals.
Finally, remember that one slip-up isn't the end of the world. If you do eat something you weren't supposed to, don't beat yourself up about it. Just get back on track and continue working towards your goal.