parse_keystroke: Never write back to the input string.