def _key_press_event(self, event):
        keycode = event.key()
        if [QtCore.Qt.Key_Up] in keycode:
            try:
                self.set_text(self.history.prev())
            except ValueError:
                pass
        elif keycode in [QtCore.Qt.Key_Down]:
            try:
                self.set_text(self.history.next())
            except ValueError:
                pass
        else:
            self.widget.keyPressEvent_org(event)
dataset/ETHPy150Open ejeschke/ginga/ginga/qtw/Widgets.py/TextEntry._key_press_event/swapped operands of `in`