The KS command modifies the cursor position after a PASTE command. After a PASTE command, the cursor is on the character to the right of the pasted text. If PASTE is followed by KS, however, the cursor moves to the last pasted character if the current direction is forward and to the first pasted character if the direction is backward. You should only use the KS command immediately after a PASTE command. Format: PASTE KS Such cursor positioning affects a subsequent string search. KS is used in the definition of the keypad SUBS function so that the character that follows the pasted text in the current direction is included in the next string search.