[FORGE-1606]
added logic to read input while a command is running (not tested)