How to Move the Mouse With the Keyboard on a Mac

Turn on Mouse Keys: open System Settings, click Accessibility, click Pointer Control and turn on Mouse Keys. On a MacBook, 7, 8, 9, U, O, J, K and L move the pointer, I clicks, M presses and holds, and the period key releases. On a numeric keypad, the keys around 5 move it and 5 clicks. While it's on, those keys don't type.

Turn on Mouse Keys

  1. Choose Apple menu > System Settings.
  2. Click Accessibility in the sidebar, then click Pointer Control. You may need to scroll down.
  3. Turn on Mouse Keys.

From then on, a group of keys on the keyboard moves the pointer instead of typing. Turn the switch off again when you want your keys back.

Which keys move the pointer

Apple gives two layouts: one for a keyboard without a number pad, such as a MacBook, and one for a numeric keypad.

To do thisMacBook keyboardNumeric keypad
Move up88
Move downK2
Move leftU4
Move rightO6
Move diagonally7, 9, J, L7, 9, 1, 3
ClickI5
Press and hold the buttonM0
Release the button. (period). (period)

The keys sit in a square around the click key, so the direction is where the key is. On a MacBook, 7 is up and to the left of I, and L is down and to the right. To drag something, put the pointer on it, press M, move it with the direction keys, then press the period key to drop it.

Important
While Mouse Keys is on, you can't use the keyboard or numeric keypad to type text. If letters stop appearing in a document, check whether Mouse Keys got left on.

Make it faster, or toggle it from the keyboard

Click the Info button next to Mouse Keys in Pointer Control for these options:

  • Press the Option key five times to toggle Mouse Keys. The quickest way to switch between moving the pointer and typing.
  • Ignore built-in trackpad when Mouse Keys is on. Useful if your palm keeps nudging the pointer.
  • Initial delay. How quickly the pointer starts moving when you press a key.
  • Maximum speed. How fast it can go when you hold a key down.

Other ways to move the pointer without a mouse

Pointer Control has two more options. Head pointer moves the pointer as you turn your face or move your head, using the Mac's camera. Alternate pointer actions let you left-click, right-click, double-click or drag with keyboard keys, assistive switches or facial expressions.

When you want the pointer to move with nobody there

Mouse Keys and head pointer both need you at the Mac. To keep the pointer moving while you're away, for example so the screen doesn't go dark during a long download or a remote session, you need an app.

Shake It On is a menu bar app that moves the cursor a short distance at an interval you choose, from every 5 seconds to every hour. You can limit it to work hours, to times a chosen app is open, or to when the Mac is plugged in. The setup is in how to move your mouse automatically on Mac.

A cursor that moves on its own while you're away, only when you want it to. Shake It On is $9.99 once.

Frequently Asked Questions

How do I move the mouse on a Mac without a mouse or trackpad?
Turn on Mouse Keys in System Settings > Accessibility > Pointer Control. Then keys on the keyboard move the pointer and click. Head pointer, in the same place, moves it with your head using the camera.
Which keys move the pointer on a MacBook?
7, 8, 9, U, O, J, K and L move it in the direction of each key from I. I clicks, M presses and holds the button, and the period key releases it.
Why can't I type after turning on Mouse Keys?
Apple says that while Mouse Keys is on, you can't use the keyboard or numeric keypad to enter text. Turn it off in Pointer Control, or press Option five times if you turned on that shortcut.
Can I turn Mouse Keys on and off from the keyboard?
Yes. Click the Info button next to Mouse Keys and turn on "Press the Option key five times to toggle Mouse Keys."
Keep your Mac awake the easy way.
Shake It On lives in your menu bar and uses organic mouse movement to prevent sleep. Set it once and forget it.
One-time purchase. No subscription. Free updates forever.
Lifetime license · macOS 14+
Apple Pay, Google Pay or card. Your download starts right after payment, and you can re-download anytime with your purchase email.