problem getting touchshield to operate arduino pin

I don't see a problem. What version of the IDE are you using.

I copied it into 0018 and it compiled fine.