Adopt get_keys_for_action to new settings code.