Many of the sugar substitutes used in sugarless gum contain a few carbs, Nutrasweet being one of them.
Also, I remember reading a thread by Mr. X saying that with some people, even the taste of something sweet (sugar or no) can trick your body out of ketosis.