Add a typing interface to your project with this microcontroller-friendly miniature keyboard. We found the smallest PS/2+USB keyboard available, ! It's small but usable to make a great accompaniment to either a microcontroller project or a computer such as the Beagle Bone or Raspberry Pi. The keyboard supports either USB or PS/2 interface and will automatically adjust to whichever its plugged into.
Comes with a full QWERTY keyboard, and has a num-lock number pad. Nearly all microcontrollers have existing PS/2 keyboard examples that would work fine with this keyboard. For Ardiuno users, we tried out PJRC's PS2_Keyboard library with great success - just check the 'simple text' example for which pins you can connect to on your 'duino (on an Uno we used digital pins 2 and 3). We suggest our PS/2 adapter cable to make the wiring easy. Start typing and you'll see the data appear in the serial terminal!
To use with a Raspberry Pi, change the keyboard to USA PC104 layout: