Modularized the code. Handled key press event. Relevant text would now be displayed to the client