TY, i have read about IPacketHandler, it is the thing, that will help client to communicate with server. So, i can do something like this:
1) register KeyBinding to handle key pressed
2) on our registered KeyBinding send packet to server with some request
3) process packet on server and send response to client
4) change GUI state respectively to response
?