Control columns to edit and override value in cell

i figured out 2/3 to control the enter key and which columns to move between i used this on the keypressed event of the table.

if(event.keyCode == 10):
	if(event.source.selectedColumn == 3):
		event.source.selectedColumn = 2
	elif(event.source.selectedColumn == 2):
		event.source.selectedColumn = 3
		event.source.selectedRow -= 1

i still do not know how to overwrite the value in the cell.