#include "pic/keyboard.h" #include "io.h" #include "stdio.h" int8_t getkey(void) { uint8_t key = inb(KEYBOARD_IO); if (key & KEYBOARD_RELEASE) return -1; return key; }