def METHOD_NAME(self, receiver, event):
    if event.type() == QtCore.QEvent.KeyPress:
        if self.log_keys:
            key = event.text()
            print('key = {!r}'.format(key))
            self.keylog.append(key)
        # QtWidgets.QMessageBox.information(
        #    None, "Received Key Press Event!!", "You Pressed: " + event.text())
    # Call Base Class Method to Continue Normal Event Processing
    return super(GuitoolApplication, self).METHOD_NAME(receiver, event)