Use device hardware keys to determine if hardware keys is shown

Change-Id: I06db8b7f5072484f282a4cf9a1a597eca7d052b1
Merge remote-tracking branch 'sgt7/cm-10.1' into cm-10.1-sgt7