Added some features to the Keyboard Interrupt