def ignore(self, event): if len(event) == 1: if event in self.keystrokes: del self.keystrokes[event] else: ShowBase.ignore(self, event)