How can I disable the eject key on my mac keyboard? I have a Das Keyboard for Mac that includes an eject key just to the right of the backspace key and to the left of the home key. I never need to use it, and it accidentally press it constantly which causes my CD tray to open. It's really annoying.

Is there anyway to disable this key?

If there's a way to keep the key's other functionality that's accessed by holding various modifiers (for example controlshifteject to put the display to sleep) that would be great. However if there only method disables the key entirely, I'm okay with that.

Note that I'm using Sierra so using Karabiner is not an option.
I created an app, PowerKey, that allows you to remap the Power and Eject keys on Mac keyboards.

Pick a key replacement such as Forward Delete, or use No Action to disable the key entirely.

You can also launch Apple Scripts or bash scripts via the key.



https://github.com/pkamb/PowerKey



https://github.com/pkamb/PowerKey