improved the overall code

-corrected the method inputFieldKeyPressed()
-added .equals(disconnect) to the run() method on the serverside