How to move the mouse with the keyboard on a Mac

Turn on Mouse Keys and use 7 8 9 U O J K L to move the pointer and I to click, or use an app like No Mouse Mode to steer it with W A S D. Here's how both work and when each one is enough.

Short answer

macOS has this built in: turn on Mouse Keys in System Settings → Accessibility → Pointer Control, then 7 8 9 U O J K L move the pointer and I clicks. It's free and fine for a few clicks, but you can't type while it's on and it has no right-click key. If you move the pointer by keyboard every day, No Mouse Mode steers it with W A S D, adds fast and one-pixel modes, a jump grid and saved spots, and gets out of the way when you type.

Try it right here: this is a working model of No Mouse Mode, not a video. Click it, then use the keys.

Interactive demo

Finder File Edit View Go Window Tue 22 Oct  9:41
Report.pdf
Projects
Notes
Sunset.png
Field Guide

Field guide

Working without a mouse

Point at this window, then hold ↓ to scroll. The photos below scroll sideways with ← and →.

Coast
Dunes
Forest
Lake
Canyon
Glacier

Hold Shift to cross the screen fast. Hold Q to move one pixel per tap.

Tap Space twice to double-click. Hold it and move to drag, let go to drop.

E splits the screen into nine cells named after the keys under your left hand. Press one and the pointer jumps there.

F puts a little letter on every button in the front window. Type it and that button is clicked.

/ lets you type a button’s name instead. H shows every key.

You reached the end. Nice scrolling.

Then use your keyboard. Esc lets go.

Option 1: Mouse Keys (built in, free)

Turn it on

  1. Open the Apple menu → System Settings → Accessibility → Pointer Control.
  2. Switch on Mouse Keys.
  3. Optional: click the info button next to it for more settings (below).

Shortcut: ⌥⌘F5 (or triple-pressing Touch ID) opens the Accessibility Shortcuts panel, where you can turn Mouse Keys on or off.

The keys

ActionKeyboardNumeric keypad
Move (eight directions)7 8 9 U O J K L7 8 9 4 6 1 2 3
ClickI5
Press and hold (start a drag)M0
Release..

So 8 is up, K is down, U is left and O is right, with 7, 9, J and L for the diagonals. I sits in the middle as the click.

Settings worth changing

  • Press the Option key five times to toggle Mouse Keys. Turn this on. You'll be switching it on and off a lot.
  • Initial delay and Maximum speed: how long before the pointer starts to speed up, and how fast it gets.
  • Ignore built-in trackpad when Mouse Keys is on: handy if a faulty trackpad is making the pointer jump.

Its limits

Apple is direct about the big one: "When Mouse Keys is on, you can't use the keyboard or numeric keypad to enter text." Every time you want to type a URL or a message, you toggle it off and back on.

Apple's Mouse Keys page also lists no right-click key. For right, double-click and drag via keyboard shortcuts you turn on Alternate pointer actions in the same Pointer Control pane. And there's no way to jump across the screen or to another display: you steer the whole way.

Option 2: No Mouse Mode's W A S D pointer

No Mouse Mode uses the keys gamers already know. Press ⇧⌘M to turn it on (or hold Right Command or Right Option, if you turn on hold-to-use), then:

ActionKey
Move (smooth, eases in, speeds up as you hold)W A S D
Fasthold Shift
Precise, one pixel at a timehold Q
Click (twice: double, three times: triple, hold: drag)Space
Right-click / middle clickReturn / M
Back / forward buttons[ / ]
Scroll in every directionarrow keys
Jump gridE
Next / previous displayTab / ⇧Tab
Jump to a saved spot / save one1–9 / ⇧1–⇧9
Jump back`
Show every keyH

Every key can be remapped in Settings, and shortcuts that use Command, Control or Option still reach the app you're in.

Jump instead of steering

Long trips are where steering gets tedious. Press E and a 3×3 grid labelled Q W E / A S D / Z X C (the same shape as those keys) covers the screen. Press a letter and the pointer jumps to that cell, then the grid zooms in. Two or three presses reach any point, then you fine-tune with W A S D. It works in any app.

For places you visit all the time, like a toolbar button in your editor, press ⇧ and a number to save the spot, and the number alone to jump back to it. ` returns the pointer to where it was before its last jump.

Often you don't need the pointer at all

If the target is a button, link, tab or menu, don't steer to it. Press ⇧⌘Space and type its label, or ⇧⌘/ and type its name. These work even with No Mouse Mode off. Labels rely on apps describing their buttons to macOS, which most do. The grid and W A S D work everywhere.

Side by side

Mouse KeysNo Mouse Mode
PriceFree, built in$19.99 one time, 1 Mac (as of October 2026)
Move keys7 8 9 U O J K LW A S D
Speed controlInitial delay and max speed settingsEases in; hold Shift fast, Q precise
Right-click keyNo (needs Alternate pointer actions)Yes, Return
ScrollNoYes, arrow keys
Jump across the screenNoGrid, saved spots, jump back
Multiple displaysSteer acrossTab / Shift-Tab
TypingBlocked while onTurns itself off when you click a text box
Click buttons by labelNoYes

The full head-to-head is in No Mouse Mode vs Mouse Keys.

When is Mouse Keys enough?

  • Your trackpad broke and a new one arrives tomorrow. Mouse Keys plus Full Keyboard Access will get you there. See what to do when your trackpad isn't working.
  • You click a few times a day and mostly type in between. Toggling with Option five times is fine.
  • You have a numeric keypad and like using it as a joystick.

When you'll want more

  • You move the pointer and type in the same minute, all day.
  • You right-click, scroll or drag often.
  • You have more than one display.
  • You're going keyboard-only for comfort. See using a Mac keyboard-only for wrist pain.

Used tools like warpd or keynav on Linux? warpd for Mac and keynav for Mac cover how they map over. For the bigger picture, start at how to use a Mac without a mouse, or see No Mouse Mode pricing.

Steer your Mac's pointer with W A S D

No Mouse Mode moves the pointer smoothly with fast and pixel-precise modes, a jump grid, saved spots and display jumps.

Buy No Mouse Mode — $19.99 one-time purchase · free updates · macOS 14+ on Apple silicon and Intel

FAQ

How do I turn on Mouse Keys on a Mac?

Open System Settings → Accessibility → Pointer Control and switch on Mouse Keys. You can also press Option-Command-F5 to open the Accessibility Shortcuts panel, or turn on the option to press Option five times to toggle it.

Which keys move the mouse in Mouse Keys?

7, 8, 9, U, O, J, K and L move the pointer (or 7 8 9 4 6 1 2 3 on a numeric keypad). I clicks (keypad 5), M presses and holds (keypad 0), and the period releases.

Why can't I type when Mouse Keys is on?

That's how it works. Apple says that when Mouse Keys is on, you can't use the keyboard or numeric keypad to enter text. Turn it off to type, for example by pressing Option five times if you've enabled that option.

How do I make Mouse Keys faster?

Click the info button next to Mouse Keys in System Settings → Accessibility → Pointer Control and adjust Initial delay and Maximum speed.

Can I move the mouse with W A S D on a Mac?

Not with macOS alone. No Mouse Mode does it: press Shift-Command-M, then W A S D move the pointer, Shift goes fast, Q goes one pixel at a time, and Space clicks. Every key can be remapped.

How do I move the pointer to another display with the keyboard?

In No Mouse Mode, press Tab for the next display and Shift-Tab for the previous one. Mouse Keys has no display jump, so you steer across.