Added code to support pressing C-c or C-d without having the system