Fix multiple key issue

When using a subshell, no \n characters get stored (probably get outputted to stderr). So it becomes 1 big line, which messes with the rest of the program.