Improve button/keyboard backlight code.

- Improve UX
- Deduplicate code

Change-Id: Ie0218de8b83fe49e3fe1d91a64c2522af03ba06d

Conflicts:
	res/values-pt/cm_strings.xml
	res/values/cm_strings.xml