Interactive mode scanner was improved

I found out that my first implementation for `restartOnKeyPress` interactiveMode leads to repeating restarts on Windows if user types while application is restarting or typed some characters before pressing ENTER.

I fixed this issue by dumping input after reacting on key press.

I've also added support for stopping server by pressing 'q' or 'Q' as you suggested