Hi,
searched the forum and did not find a thread in Due forum about PS2Keyboard library.
First I tried last version (2.3) from Arduino Playground:
http://playground.arduino.cc/Main/PS2Keyboard
That does not compile for Arduino Due. Then I found the project wiki page,
https://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
downloaded v2.4 and ran "PS2Keyboard" Simple_Test example and it immediately worked:
On the right side you see the 0,94$ PS2 module for Arduino I used to connect the keyboard:
http://www.aliexpress.com/item/PS2-Module-PS-2-Mouse-Keyboard-Socket-Compatible-for-Arduino/32586612372.html
The only problem left for me is that my keyboard is German ...
(z in Anyway and > where : should have been)
/* PS2Keyboard library example
PS2Keyboard now requries both pins specified for begin()
keyboard.begin(data_pin, irq_pin);
Valid irq pins:
Arduino Uno: 2, 3
Arduino Due: All pins, except 13 (LED)
Arduino Mega: 2, 3, 18, 19, 20, 21
Teensy 2.0: All pins, except 13 (LED)
Teensy 2.0: 5, 6, 7, 8
Teensy 1.0: 0, 1, 2, 3, 4, 6, 7, 16
Teensy++ 2.0: 0, 1, 2, 3, 18, 19, 36, 37
Teensy++ 1.0: 0, 1, 2, 3, 18, 19, 36, 37
Sanguino: 2, 10, 11
for more information you can read the original wiki in arduino.cc
at http://www.arduino.cc/playground/Main/PS2Keyboard
or http://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
Like the Original library and example this is under LGPL license.
Modified by Cuninganreset@gmail.com on 2010-03-22
Modified by Paul Stoffregen <paul@pjrc.com> June 2010
*/
#include <PS2Keyboard.h>
...
Hermann.