Implemented a way to handle keyboard interrupts and kill the robot