# PS/2 keyboard

The unit at [drv/ps2.fs] implements keyboard structs [doc/io/kbd] for PS/2. It
consists of "newps2set1kbd ( -- kbd )" and "newps2set2kbd ( -- kbd )" that
create new keyboard structs feeding themselves from the "(ps2@?) ( -- ?keycode f
)" word, which must be implemented and then realiased by specific drivers.

For example, 8042kbd@? from [drv/pc/pc28042.fs] is such an implementation.

That word checks if the controller has received a keycode from its keyboard.
If it has, f=1 and keycode is the PS/2 key code received from the device.
Otherwise, f=0.

Example initialization:

  newps2set1kbd to keyboard
