Add support for moving the cursor position.