def keyPressEvent(self, event):
        """
        Handle keyboard events
        """
        key = event.key()

        if key is self.keymap:
            self.keymap[key]()
        else:
            super(MenuDialog, self).keyPressEvent(event)
dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/gui/menu.py/MenuDialog.keyPressEvent/operator `in` -> `is`