Improving the cursor movements