I have an Apple Wireless Keyboard that has an eject key on the top right. It is useless because my Retina MacBook Pro does not have a CD-ROM.

My MacBook is running OS X Mavericks and I expected eject key to do some power operations, just like the power key on the top-right of MacBook keyboard.

This key is useless now. How can I get it mapped?

  • Asking why Apple make the decisions they make is rarely a constructive question here. This could be edited so it is about solving a problem, but as it is written, it's really just a rant. – Daniel Sep 30 '14 at 3:20

The wireless keyboard can be used with systems that do still have an optical drive, and if you had an external USB SuperDrive for your MacBook Pro, it would function for that.

Your power operations have always been on the eject key using modifier keys; only recently was the power key introduced as part of the keyboard itself.

  • controleject will give you a dialog box where you can choose to go to sleep, restart or shut down.
  • commandoptioneject will go straight to sleep.
  • controlcommandeject will restart.
  • controloptioncommandeject will shut down.
  • controlshifteject will sleep your display only.

You can use Karabiner (formerly KeyRemap4MacBook) to remap the eject key. Short presses of eject won't get registered unless you also install NoEjectDelay though.

This private.xml maps the eject key to a power button or key:

<?xml version="1.0"?>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::EJECT, KeyCode::VK_IOHIDPOSTEVENT_NX_POWER_KEY</autogen>

This makes pressing eject open Finder:

<?xml version="1.0"?>
    <name>Eject to Open Finder</name>
    <identifier>Eject to Open Finder</identifier>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::EJECT, KeyCode::VK_OPEN_URL_FINDER</autogen>
  • Note that this won't help you turn on your computer. – Max Ried Sep 4 '14 at 5:22
  • Definitely use the application Karabiner, as Daniel recommended. There are so many useful ways to repurpose an unused key when using that app. On my old Macbook Pro, I remapped the eject button so that it makes windows full screen. I really miss having that full screen button . . . time to remap the Launchpad key. – codester Sep 30 '14 at 2:27
  • I want my EjectKey to jump to the end of the line. In the UI of Karabiner I cannot select "elect" in the simple modification dialog. – modiX Jan 11 '18 at 14:00

Ejector is a paid app that repossesses the eject key for other storage volumes e.g. USB drives, SD cards and mounted disk images etc.

Ejector Image: Ejector

I have no affiliation with the developer. I discovered the app reading a Cult of Mac article.

You must log in to answer this question.

protected by Community Nov 21 '15 at 3:17

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .