def keyDown(self, evt):
        """
        Triggered on pressing a key,
        sets the corresponding variable to True
        """
        keyname = evt.dict.get('keyname', None) or self.root.getKey(evt)
        if keyname == config.keys.pickBlock.get():
            self.pickBlockKey = True
        if keyname == config.keys.brushLineTool.get():
            self.lineToolKey = True

        Triggered on pressing a key,
        sets the corresponding variable to True
        
editortools/brush.py