---
title: "move(in:by:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextselectiondirectionnavigation/move(in:by:)"
---

# move(in:by:)

Moves the cursor in the specified directions by granularity, in response to different key combinations:

## Declaration

```swift
func move(in direction: UITextStorageDirection, by granularity: UITextGranularity)
```

## Discussion

Discussion Option + left/right = word Option + up/down = paragraph Command + left/right = line Command + up/down = document

## See Also

### Moving the cursor

- [move(in:)](browserenginekit/betextselectiondirectionnavigation/move(in:).md)
