Capacitive touch interrupt as toggle switch …

The tutorial may be referring to the capacitave sense board AT42QT1070 which is stand alone.

You can not use the CapSense library functions when the processor is asleep.