Change cursor by modes