Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way I can move the mouse pointer using the keyboard?

share|improve this question
uh, do you mean the mouse pointer? – Babu Jan 9 '10 at 18:45
yes, mouse pointer. sorry didn't say it before – portoalet Jan 9 '10 at 19:53
up vote 6 down vote accepted

In System Preferences, choose Accessibility > Mouse & Trackpad (or search for “mouse keys”). Enabling Mouse Keys (which can usually be done by tapping Option five times) allows the numeric keypad to function as an 8-direction “joystick” (7 = left+up, 8 = up, 9 = right+up, etc.). Use the keypad's 5 to click the mouse (press it twice, quickly to double click; hold Control while pressing to right-click).

share|improve this answer
Thanks for the tips! – portoalet Jan 9 '10 at 19:58
Does this work in Mavericks? – vaichidrewar May 15 '14 at 18:33
@vaichidrewar: Yes (just verified on a MacBook Air running 10.9.3). Also, if your keyboard does not have a keypad (e.g. a laptop), then the effective keys (on a QWERTY layout keyboard) are 7, 8, 9, u, i, p, j, k, l (as if the 3×3 numeric keypad had been transplanted to the center-right part of the keyboard)—other keys are not functional while Mouse Keys is active, so you will need to toggle it back off to do normal typing. – Chris Johnsen May 16 '14 at 6:28
@ChrisJohnsen Thanks! I thought after search I will see 'mouse keys' in the results. But the most relevant item after search is 'make mouse and trackpad easier to use' and initially i could not relate it to 'mouse keys' setting. – vaichidrewar May 17 '14 at 0:30

Yes. Let's assume you're in a document editor and you have a bunch of text you'd like to navigate. You can use the arrow keys ← ↑ → ↓ to move one character in either direction horizontally, or one line in either direction vertically.

To move to the beginning or end of a line, type ⌘← or ⌘→, respectively. ⌘↑ and ⌘↓ move to the beginning and end of the document. In areas where these shortcuts don't work, such as in the Terminal, use ⌃A and ⌃E instead (which can be used in most Cocoa text controls).

You can move one word left or right by using ⌥← or ⌥→, respectively. Likewise, ⌥↑ and ⌥↓ move to the beginning and end of a paragraph.

As Chris Johnsen points out in the comments, you can also use "other Emacs-like bindings (⌃F: →, ⌃B: ←, ⌃N: ↓, ⌃P: ↑, ⌃T: transpose (swap) characters)". Chris also mentions some interesting subtleties with soft-wrapped text, where "⌃A and ⌃E work on the whole line while ⌘← and ⌘→ work on the current portion of the display-wrapped line". Thanks For that.

Not sure if this is what your vague question was referring to, but you can definitely move the cursor using the keyboard almost anywhere in Mac OS X.

share|improve this answer
+1 for the correct ⌃ rather than the easy-but-incorrect ^ :-) – Arjan Jan 9 '10 at 19:05
Note that ⌃A and ⌃E can be used in most Cocoa text controls along with many other Emacs-like bindings (⌃F: →, ⌃B: ←, ⌃N: ↓, ⌃P: ↑, ⌃T: transpose (swap) characters). Also, for long lines that are “soft wrapped”, ⌃A and ⌃E work on the whole line while ⌘← and ⌘→ work on the current portion of the display-wrapped line. – Chris Johnsen Jan 9 '10 at 19:10
Haha, well I guess this wasn't what the OP was looking for (which makes sense now, in retrospect). Hopefully someone can make use of this info. – fideli Jan 10 '10 at 1:29
Despite it not being what the Questioner was after it is very likely to be very useful for people searching on this topic. Few people seem to be aware of both the "emacs-like" binds and the historical mac bindings. It's not quite vi but it's under-appreciated. – Lake Aug 17 '12 at 19:42

Left shift + left alt + num lock enables the number pad for directional cursor function. Use 8,9,6,3,2,1,4,7 to guide your cursor. To click an option with your cursor tap 5 and to double click tap 5 twice.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.