@Override
	public void keyPressed(KeyEvent ev) {
		if (ev.getSource() == frame) {
			if (client != null) {
				try {
					client.sendAction(name, ev);
				} catch (IOException e) {
					e.printStackTrace();
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
		} else if (ev.getSource() == chatArea) {
		}
	}