Keyboard documentation

Introductions

The keyboard is a peripheral that can be placed on flat and vertical surfaces and sends keystrokes to connected computers.

The keyboard has no API, but it does have an event table.
You can also shift while placing it to push the block model closer to you.

The keyboard is categorized as "neetcomputers:keyboard" in the IO API

Event table

This event table is identical to the keybind events, but with a peripheral header on the events.

keyPressed [Peripheral]

neetcomputers:keyboard[String] UUID[String] >
keyPressed[String] code[Int] letter[String] modifiers[Int]
Triggered when a key is pressed, returns an ASCII keycode, a letter representing the key pressed if applicable or "" if not, and modifier key bitmap.

keyReleased [Peripheral]

neetcomputers:keyboard[String] UUID[String] >
keyReleased[String] code[Int] letter[String] modifiers[Int]
Triggered when a key is released, returns an ASCII keycode, a letter representing the key pressed if applicable or "" if not, and modifier key bitmap.