HelenOS sources

new_kbd_event     650 uspace/srv/hid/remcons/remcons.c 	remcons_event_t *down = new_kbd_event(KEY_PRESS, mods, key, c);
new_kbd_event     654 uspace/srv/hid/remcons/remcons.c 	remcons_event_t *up = new_kbd_event(KEY_RELEASE, mods, key, c);
HelenOS homepage, sources at GitHub