Fix hardware keyboard and sensors

Change-Id: Iffb3c70a0225a43fc55d1850aebe961c0cd4fff4