Tried Ctrl+Z. After that, enter does nothing, I can't type anything, and I can't move the insertion point anywhere.

I'm using Netbeans. When I compile, it opens in command prompt.