My question is can you check for keyboard input within a loop without halting the loop itself.
while(condition)
{
if(keyboard input)
action;
more code;
more code;
more code;
more code;
}
edit:
I'm using a linux machine.