Fix bug introduced in last KeySet.perl fix.