Hi all!!I need some help.. I'd like to know if there's a library, a code that allow me to do something untill a key on the keyboard is pressed?? I mean: i'd like to tur on a led (connected to the gpio ofmy raspberry) untill i keep pressing enter

Is there a way to do that in python or i need pygame?? If so, how can i do it??