Do not exit loop if a key is pressed