def keyPressEvent(self, event):
        # Ignore presses of the control and shift keys.
        if event.key() not in (QtCore.Qt.Key_Control, QtCore.Qt.Key_Shift):
            self.editor.key = event

    #---------------------------------------------------------------------------
    #  Do a GUI toolkit specific screen update:
    #---------------------------------------------------------------------------
Processes a tuple of 2-element tuples and returns the value
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/key_binding_editor.py/KeyBindingCtrl.keyPressEvent--crossover with--dataset/ETHPy150Open CiscoSystems/avos/horizon/utils/functions.py/value_for_key