Can't type anything while running code in netbeans
You can try to change the console type :
Right click on your project > Properties > Run > Console Type
Adding to Vincent's explanation, I find that the correct console type is the External Terminal.
(Given that this question was over a year ago, this is mostly for the sake of future Googlers)