Fix key code
Fix ticket #9276: Labeling cursor off by several characters

The length of STRING row elements is not updated until finalizeLast() is called.