First of all, keyboards have limited size buffers, secondly the same is available on GUIs, and I go back to mastering the craft and OS APIs.
https://learn.microsoft.com/en-us/windows/win32/inputdev/key...
https://tronche.com/gui/x/xlib/events/keyboard-pointer/keybo...