Added actions to move the cursor and the selection. Fixed errors and GetSelectedText().