KeyLocator: Move class KeyLocator to its own source file.