SYNOPSIS
kbdhandle = keyboard.new(app)
DESCRIPTION
Create a new keyboard event handler. The handler is attached to the event processor passed in app.
Keyboard events are detected during the event loop inside event:poll() and reported to the callbacks keyboard.key() and keyboard.event().
RETURN VALUE
On success, a keyboard event handler instance. If opening the input device fails, three values are returned:
nil, a string describing the error (The result of the C library call strerror() on the
errno code) and the errno number from the standard C library.
EXAMPLE
>
>
app = event.new()
kbd = keyboard.new(app)