'How do I get detect multiple key pressed from keybaord.py or other library

I want to detect and return multiple keys pressed at the same time instead of being single keys. for example, the main command to detect keys, in keyboard.py, is read_key(), but it only returns a single character such as

ctrl
a
b

but I want the output to be as:

ctrl+a+b

how do I do that using keyboard.py or other libraries?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source