def METHOD_NAME(self):
    chars = list(self.orig_stdin.readline()[:-1])
    while chars or self.requested_events:
        if self.requested_events:
            self.process_event(self.requested_events.pop())
            continue
        c = chars.pop(0)
        if c in "/":
            c = "\n"
        elif c in "\\":
            c = key_dispatch[self.config.undo_key][0]
        elif c in "$":
            c = key_dispatch[self.config.pastebin_key][0]
        elif c in "|":
            c = key_dispatch[self.config.reimport_key][0]
        self.process_event(c)