Assign a default key if key is None