<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BETextSelectionDirectionNavigation/move(in:by:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(pl)BETextSelectionDirectionNavigation(im)moveInStorageDirection:byGranularity:"
  },
  "title" : "move(in:by:)"
}
-->

# move(in:by:)

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

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)