A friend came to me and asked me for some help with a program and I need help with it myself. He wants to have a program loop and at the same time detect keyboard input. That way, the program will do something until it is interrupted by user input, then based on the input it will jump to something else. Any help is greatly appreciated and so is source code.
Thanks in advance