Add carriage return to keys in write_command