adds FileWriter#write_key