arduino pro mini sleep / wake up with adxl345

the displayed name is "SparkFun ADXL345 Accelerometer Hook Up Guide Example"

The intention is to

have the board detect a TAB, perform a measurement (both things work),
then
detect INACTIVITY and go to sleep //that works if I set line 90 to 0, correct?
until
DOUBLE TAB is detected -> wake up //that works if I set line 93 to 1, correct?
then
receive a TAB and perform the measurement again
OR
detect INACTIVITY and go to sleep again
and so on