Use CM hardware key config and disable and enable some prefs.

Change-Id: Ia934e1cf6844571fcb550b2cc18fb0b88b5e8da2