Adding KeyboardInterrupt and receing data printout