Revert "remove all hardware key support all togeather"

This reverts commit e6b25c40e8ee48fc4204cdd8e6917506b0585a93.