adjust cursor movements