Implement double tap to sleep feature