I just added ps2 keyboard input but don't have a key board to test with at the moment.
I would very much appreciate it if some one with the hardware could test it.
I integrated the arduino library from here.
http://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
A simple test program that should work is shown below.
Pins to use are 12 for data and 12 for irq.
button "click me" [test]
wait
[test]
ps2input bla
print bla
wait
Give it a shot and let me know.
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com