Proper keyboard interrupt handling.