Use device hardware keys to determine if hardware keys is shown

Change-Id: I06db8b7f5072484f282a4cf9a1a597eca7d052b1