I’ve created a small library to read keyboard events from a mediumraw keyboard in the linux console, It is intended to be used with framebuffer applications, and supports both raw key events and full character input including modifiers and dead char handling. You can find it at it’s Codeberg repo.