A subclassable method for dealing with input characters.

def process_input(self, character):
        """
        A subclassable method for dealing with input characters.
        """
        func = None
        try:
            func = getattr(self, "handle_%s" % chr(character), None)
        except:
            pass
        if func:
            func()