I want to detect when the user presses the RETURN/ENTER key. Right now, I am doing this using a while loop, but that blocks my code unless the while is broken.
Is there any way to detect the ENTER press without using while loops? I can't use tkinter either.