UInputSettings::GetAllActionAndAxisNames

Returns all known legacy action and axis names that is useful for properties that you want a drop down selection of the available names on a UPROPERTY i.e.