Revert "Revert "Define config_deviceHardwareKeys properly.""

This reverts commit 63ab823666eac8dec19ad3db8bfdb19775493349.