KeybordInterrupt and endless running implemented.