The circuit board in a keyboard is probably smaller than the one in a gamepad. They are quite small
I intend to use the keyboard method to make use of the steering wheel controls in my Holden VX. Just need to find out how to take the covers off the steering wheel case without wrecking it! (time to search some holden forums...or perhaps go look to see if its just a few screws!)