Make class method for keys work without calling new.