Improved cursor movement extension