I'm using this to change the cursor position and unselecting the cell ...
Sub MoveCursor
oDocument = StarDesktop.getCurrentComponent
oView = oDocument.getCurrentController
'Move to a specified cell
'oCell = oView.getActiveSheet.getCellByPosition(5,10)
'Move at the beginning of the selection
ocell=odocument.getcurrentselection
oRanges = oDocument.CreateInstance("com.sun.star.sheet.SheetCellRanges")
oView.Select(oRanges)
end sub