Catch KeyboardInterrupt for !commands on Windows

Building on #6885
Merge pull request #6898 from ipython/win-system-catch-ctrl-c

Catch KeyboardInterrupt for !commands on Windows