Disable key in macos without a third party program

Is it possible to disable a key in MacOs without installing a third party program (e.g. Karabiner)?

One of my keys is stuck and gets pressed continuously.

In Unix it is easy to do with xmodmap, is there an equivalent for mac.

1

1 Answer

Yes, but not easily

I'm still going to recommend you use Karabiner: it's easy, works well, and does exactly what you need to do. However, if you insist otherwise...

Unless your keyboard happens to be the Caps Lock, Control, Option, Command, or Function key, it cannot be easily remapped or disabled natively. Karabiner is your best bet.

If it is one of those keys, it can be disabled in System Preferences -> Keyboard -> Modifier Keys -> [The key you want] -> No Action.

enter image description here

However, if it's not, you'll have to create a custom keyboard layout. You can either do this by hand(ish), as suggested by Apple, or using a program called Ukelele. There's simplified instructions on apple.stackexchange.com, but I encourage you read the full documentation, it's not the easiest process. However, the main idea is you simply want to unlink the output of the keyboard, then save and install the layout.

enter image description here

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like