How to query key presses

Is there a library which is able to query if a key is currently being pressed or not?
I guess this would usually be done using OS-specific calls.

The goal would be to detect multiple simultaneous key presses of a keyboard.

I think this would be GUI specific, i.e. what UI library you are using. Or do you want this from the terminal?

1 Like