Revert "Remove unused codes"

This reverts commit ccca3b94442c890423ba41c5000b7fe0e62e1da7.
Revert "Settings: More options added to hardware key rebinding (2/2)"

This reverts commit 4ed57c071a8d53f81373df5a52776cf24d705cd7.