def OnCellText(self, event):
        """Text entry event handler"""

        row, col, _ = self.grid.actions.cursor
        self.grid.GetTable().SetValue(row, col, event.code)

        event.Skip()
Text entry event handler