How to Fix the Home and End Buttons for an External Keyboard in Mac


If you are a seasoned Mac user, you will know that the shortcut keys “Command + Left arrow” and “Command + Right arrow” move the cursor to the start and end of the line respectively. However, if you use a full-size external keyboard for your Mac, you will find that the “Home” and “End” buttons aren’t working properly. In fact, they are not working at all since Apple doesn’t bind the buttons to any function.

If you want to fix the “Home” and “End” buttons, here is a quick tip to get them working again the way they should.

1. Open a terminal. You can access it from the Launchpad.

2. Type the following commands (and press Enter after each line):

What the above commands do is create a new “KeyBindings” folder in the “Library” folder and add a new “DefaultKeyBinding.dict” file.

3. In the text editor that opens, copy and paste the following commands to it:

Save (using shortcut “Ctrl + o”) and exit (“Ctrl + x”) the file.

4. Restart your Mac. The “Home” and “End” should be working now, and you can use it in conjunction with the “Shift” and “Ctrl” modifier buttons.

Damien Damien

Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.


  1. Last Sunday, I was work on my PC and suddenly two buttons stop working. One is the home button and second is the end button. I had searched on internet and found your blog. I read your post very carefully and thanks for sharing this nice post. I had followed your tips and now my keyboard is working, Thanks Again.

  2. Thank you! This worked. The only part that was confusing was saving the file. The first time I didn’t save it successfully. But, on the second try I figured it out….you need to push an extra at the end to save the file. Thanks!

Comments are closed.