made the cursor move when set cursor pos () was called