Add keys constraint