Use enumerate instead of range in hotkeys_settings.