I need to detect key pressing inside Lazarus made application, which is independent for focused component. It is fairly easy to do that with Windows API calls, but I'm not certain for Linux.
For now I using timers and check for particularly pressed keys with GetKeyState(), but that is not suitable enough, as it depend on timer interval, however, application need to react instantly.