Get a spray bottle, put some tap water in it, and spray when kitty claws the carpet. They don't like it, but it's harmless. After a while all you have to do is show the bottle to 'em and it will stop!
A spray bottle? I am going to fill one right now! This cat will not win! (kind of like Reid!)