Enabled event detection for power-button press