Cursor function adjustment

Let the horizontal move and vertical move simultaneously