Used kbhit() to exit if user input detected.

During the loop, if keypress is registered then the loop will stop. This
uses conio.h. From what I can tell online, it isn't a recommended thing to
use because it is not the same across different OSes.