procedure CheckKeyName(const KeyName: string);
Description
Checks if a key name already exists in the list.
CheckKeyName checks for the key specified by KeyName in the Keys list. If the key with the specified name is already listed, CheckKeyName raises an EScError exception with the duplicate key name error message.