I want to be able to press any key to perform some sort of logic while other code is running. I don't know if parallel programming is required. I don't think it has to be. Basically I want to be able to perform something along the lines of this type of functionality
ex:
Welcome to questionnaire test (press 'j' to quit):
what is your fav color? # input answer
what is your fav number?
where are you from?
how do you do this?
press 'j'
#LOGIC
Pretty much I would be able to press a certain key at any moment to perform some sort of logic
I'm not sure where to look or how to implement this in python.