Record the key presses.

def qteKeyPress(self, msgObj):
        """
        Record the key presses.
        """
        # Unpack the data structure.
        (srcObj, keysequence, macroName) = msgObj.data

        # Return immediately if the key sequence does not specify a
        # macro (yet).
        if macroName is None:
            return

        # If the macro to repeat is this very macro then disable the
        # macro proxy, otherwise execute the macro that would have run
        # originally.
        if macroName == self.qteMacroName():
            self.abort()
        else:
            msg = 'Executing macro {} through {}'
            msg = msg.format(macroName, self.qteMacroName())
            self.qteMain.qteStatus(msg)
            self.qteMain.qteRunMacro(macroName, srcObj, keysequence)