Move the cursor while typing the search pattern