Library for parsing (Keyboard) input into simple strings?


Is there an existing solution for parsing input from the keyboard into strings?
For instance if the user holds down ‘shift’ and ‘alt’ and presses ‘J’ and then releases these buttons it would output the string “shift+alt+j”.
The library could also allow sophisticated combinations like holding alt+K and then releasing ‘alt’ and pressing ‘S’ sort of like Visual Studio Code does.



Can you use a TextField with type INPUT and get the text from there?