def keyPressEvent(self, event):
        """
        Reimplements the :meth:`Basic_QPlainTextEdit.keyPressEvent` method.

        :param event: Event.
        :type event: QEvent
        """

        processEvent = True
        for accelerator in self.__pre_input_accelerators:
            processEvent *= accelerator(self, event)

        if not processEvent:
            return

        Basic_QPlainTextEdit.keyPressEvent(self, event)

        for accelerator in self.__post_input_accelerators:
            accelerator(self, event)
Reimplements the :meth:`Basic_QPlainTextEdit.keyPressEvent` method.

        :param event: Event.
        :type event: QEvent