Update KeyReader.java and KeyWriter.java to use specific formats.