Update Server.java

Updated Server class. Enter key now works in field.