Fixed Torch issue with hardware keys mod

Change-Id: I809a7e8ff37a1477496263baea64ac34319e3afc