Create External Buttons for Your Keyboard




Introduction: Create External Buttons for Your Keyboard

About: My name is Jason Poel Smith I am a Community Manager here at Instructables. In my free time, I am an Inventor, Maker, Hacker, Tinker, and all around Mad Genius

There are times when it would be useful to have external buttons for your keyboard. This can let you make a custom gaming setup with foot pedals. You can make a simple data logger that tracks how often some event happens. Or you can just make a remote play switch to start and stop your music.

So in this project, I am going to show you a simple way to make external buttons for your computer keyboard.

Step 1: Materials

Here are the materials and tools that you will need for this project.

Large Push Light
Masking Tape
Thin Insulated Wire

Wire Strippers
Screw Driver

Step 2: Open the Housing of the Keyboard

Start by removing the screws on the back of the keyboard and opening it up. Inside you will find several sheets clear plastic. The top sheet and the bottom sheet will have etching that resembles a circuit board. These are the button contacts. The middle sheet is plain but has a hole at the location of each contact. This sheet acts as an insulator between the top and bottom sheet.

The etched plastic sheets connect to a small circuit board. Whenever a button is pressed, the contacts on the plastic sheets touch and the circuit board registers key stroke.

Step 3: Locate the Key That You Want to Be Able to Activate With an External Switch

Locate the contacts for the key that you want to be able to activate with an external switch. Larger keys like the space bar may have more than one contact. 

Step 4: Attach Wires to the Keyboard Contacts

Take a pair of small insulated wires and strip the insulation off of the ends. Place the exposed copper wire over the keyboard contact. Then tape it down with a piece of masking tape. Try to tape it down tightly so that it makes a good connection. Do this for the contacts on both the top sheet and the bottom sheet. 

Now you need to test it. Plug the keyboard into your computer. Then take the free ends of the two wires and touch them together. If everything is working properly, the computer should register the key stroke just as if the button had been pressed on the keyboard.

Step 5: Cut a Slot in the Side of the Housing for the Wires

To route the wires outside of the keyboard, we need to cut a slot in the housing. Hold the wire up to the edge of the housing where you want the slot to be and mark the edges. Then use a sharp knife to cut a slot for the wire in the side of the keyboard.

Step 6: Select a Button That You Will Use to Activate the Keyboard

Now you need to find a switch or button that you can connect to the wires and use to activate the keyboard. This can be any kind of switch. I chose to use the switch from a small push light. But you could also use any small push button switch. You could use a magnetic reed switch. You could even use a pressure plate.

Step 7: If You Have a Latching Switch, Convert It Into a Momentary Switch

You need your switch to be a momentary switch. If the switch latches and stays in the ON position it will just be like someone is holding down the key on the keyboard. But if you have a latching switch that you would like to use, you can often modify it so that it acts as a momentary switch.

To do this, start by taking apart the housing of the switch. Be very careful not to lose any small pieces that might be inside. Somewhere inside the switch, there will be a pin or a hook of some kind. This is what latches the switch and holds it down. Carefully remove this pin. Then carefully reassemble the rest of the switch. Be sure to get all the small parts back in their original locations. If all went well, you should now have a momentary switch.

Step 8: Connect the Wires From the Keyboard to the Switch

Now you just need to connect the switch to the wires from the keyboard. To do this I cut the wires that connected the switch to the light and I stripped the insulation off of the ends. I inserted the wires from the keyboard through the mounting hole in the back of the push light. Then I soldered the wires together. To help keep the solder connections insulated, I wrapped them in tape. 

After making these connections, you should again test it. Plug the keyboard into your computer and press the switch. If everything is working properly the computer should register the keystroke.

Step 9: Close Up the Housing of the Switch and the Keyboard

Now just reassemble the housing of both the keyboard and the button. Try not to disturb the wires too much in the process.

Step 10: Use Your New External Keyboard Switch

Now you just need to find a few creative ways to use your new external keyboard buttons. The simplest application is to just use it to scroll through Reddit or to start and stop your music player. Or you can use it or gaming. That way you can control character movement, aim and hit commands all at the same time. You can also use it to help data logging. You can easily count the number of times that an event happens using a spreadsheet. Just count the number of times that a letter is typed. This design also makes it easy to set up controls for people with limited mobility. 

The only down side of this design is that you can't use that key on the keyboard while the external switch is attached. So if you want to be able to still type on the keyboard like normal, then you need to two keyboards. One will let you type and the other will have the external switches connected. This shouldn't be too much of a problem because you can get cheap keyboards at a thrift store and most computers have plenty of extra USB ports to use.

Step 11: Trouble Shooting

Most problems that you will experience are caused by a loose connection between the contacts on the keyboard and the wires. There are several ways that you can deal with this.

You can make the connection tighter by applying more tape. You can use a paper clip to hold the wire tightly against the contacts. Just cut a small hole in the plastic that will let you slide half of the paper clip to the other side of the plastic. You can also use conductive glue to attach the wires. If all else fails you can trace the wires back to where they connect to the circuit board and solder the wires directly to the circuit board.



  • Tiny Home Contest

    Tiny Home Contest
  • Metalworking Contest

    Metalworking Contest
  • Water Contest

    Water Contest

33 Discussions

Awesome, I've been working on something similar using an arduino leonardo


2 years ago

Thank you for this great tutorial. This gave me an idea for my next stuff to tinker with, but I'm not sure if it would work because I don't know about electronics stuff. So, will this work if the pushbutton is 5 (or more) meters away? Can this be done with only 1 keyboard and 10 pushbuttons? If not, what workaround can be done to achieve this?

4 replies

Yes. If you have a good connection, the distance shouldn't really matter. You can use as many keys as you want. But it can be difficult to setup multi-key functions that use the same keys.

Really!? Wow! Our problem is solved . . . thanks to this instructable (and to you). One more thing, any ideas on the kind of wire that is best for this setup? My friends and I are going to make a quiz buzzer sytem out of this.

I would recommend using fairly thin wire so that it can fit between the sheets on the keyboard. If you use larger wires, use stranded rather than solid wire.

well actually if cable is really long this can cause to some problems, in some cases it will may not work, or can work as different key.

this is happened to me. that is why I had to update my project to arduino.

i made it but no pictures basicly my mom bought lots of halloween decoration and you know how there is those buttons it comes with i used one of those and put it directly under the spacebar i wired to to F3 for minecraft


2 years ago

Thanks for the 'ible, just used it as an inspiration to add palm keys to my keyboard! I was able to maintain functionality of the original keys by using a small wire hooked up to one of the extra, unused contacts.

Hello, and thank you very much for great tutorial, I think it might be only one of it´s kind (that I found)! I have a question, do you think, that I can trigger the key not by external USB button, but with switch, that will send 5V impulse? Thank you again :)

1 reply

It depends on the kind of keyboard that you have. I had the best luck just using a regular switch/button and one wire on each side of the keyboards key conductors. If you want to get more complicated you can setup an Arduino that will activate certain functions certain functions when a button it's pressed.

I have exactly the same keyboard

The keyboard matrix is simply a bunch of contacts laid out in columns and rows. Each combination of a single column contact and row contact produces a keystroke. You can do away with the keyboard itself and just keep the controller circuit. So you could make a box with say four footswitches to control cursor movement (or whatever).

awesome !

47K views on instructables but only 5K views on youtube? what the hell?

youtube doesn't count embedded views anymore?

1 reply

Excellent, quite fancy doing this with a passive IR sensor - wave your hand to play/pause!

1 reply

I was inspired by this instructable! It helped me to make

Would this hack work for multiple-key commands like [Ctrl-Alt-Del] or [Ctrl-X / Ctrl-C / Ctrl-V]. I do data entry and that'd seriously make my day.

Either way, great instructable! Really clear and straightforward!

1 reply

Yes. You can activate multiple keys. But it may be easier to connect to one of the function keys and program it to shortcut a given command.