I'm wanting to do this so when I'm gaming I can use the mouse button as my modifier "shift" key instead of having to actually hit +1 or +2. This will prevent me from having to take my fingers off of the "1-4" or "Q-R" keys in order to modify them to +1.

Some notes:

  1. No Mouse Software Available from what I could fine.
  2. KeyRemap4MacBook doesn't have the ability to directly let me do it, so I was hoping there might be someone who could help me with the code needed to add it to the program.
  3. It doesn't just have to work for this mouse only as I'll essential always use it as a third shift key.
  4. I think a global remap might be best.
  • I have questions. (1) Does your mouse have its own software That could maybe do this? Any somewhat recent Logitech gaming mouse should. (2) Keyremap4MacBook or Karabiner? (3) Should it remap the key for that mouse only? (4) Should it remap the button for a specific application? -- You can answer these by editing your question.
    – Joonas
    Apr 29, 2017 at 8:49

1 Answer 1


I have no idea how much difference there is between KeyRemap4MacBook and Karabiner (minus Karabiner Elements), so I can't guarantee that this will work on older versions. KeyRemap4MacBook got a name change to "Karabiner" in 2014 I believe, so some of the documentation may not apply to it anymore.

I only have access to mac with Sierra, so I couldn't test it in any version.

  1. Follow the instructions on how to add custom settings
    • Get back to this after you've completed step 3.
  2. Ignore step 4 and replace the contents of private.xml with:

<?xml version="1.0"?>

    <name>Mouse Button 4 to Shift</name>


  1. Continue the instructions on how to add custom settings at step 5.

If you're not 100% sure that it's actually button number 4 that you're pressing, you can use the EventViewer to check.

Just incase someone is interested:

  • Hey @Joonas, yes we're talking about the same program. I just tried one of their built in ones and it didn't work. Tried your and got the same thing. Is there a spot I'm suppose to "activate them other than just checking the box? Apr 29, 2017 at 23:51
  • Hmm... No. That should do it. What if you test it using the EventViewer? It will show that shift key is triggered when you press that mouse button... If it worked. What I'm thinking is that it is possible that something in the game could prevent it from working, so better test if the built in event viewer sees the changed keys. You may also want to make sure that it supports your OS version and that you've added and checked it in System Preferences > Security & Privacy > Privacy (top right) > Accessbility (left). Click the lock and enter admin pass to edit. It may already be there...
    – Joonas
    Apr 30, 2017 at 0:15
  • I think the issue is it needs another update to work on my OS right now. That explains why no part of the program works. Do you know any other programs that may work? Apr 30, 2017 at 2:34
  • I don't. Why don't you update? Or check what your OS version is and download the appropriate version of Karabiner? It lists the supported OS X version in each download button... Except for Karabiner elements, which works on Sierra (10.12). You can check your OS version in the Apple menu in the top left, and by going to the About section. Should say "Version X" at the top of the About window.
    – Joonas
    Apr 30, 2017 at 7:53
  • Just got Karabiner Elements, I didn't know I could download it since it wasn't finished. I'm looking for a place to add my own code now- does it have to be done in terminal? Apr 30, 2017 at 20:03

You must log in to answer this question.

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