The keys() method of the CustomStateSet interface is an alias for CustomStateSet.values.
keys()
CustomStateSet
CustomStateSet.values
None.
A new iterator object containing the values for each element in the given CustomStateSet, in insertion order.