@Override
	public void keyPressed(KeyEvent e) {
		
		int key = e.getKeyCode();
		String keyEvent = "";
		if (key == KeyEvent.VK_LEFT) {
			keyEvent = "VK_LEFT";

		}
		if (key == KeyEvent.VK_RIGHT) {
			keyEvent = "VK_RIGHT";
		}
		if(keyEvent != "" && started){
		SnakeUserMessage SUM = new SnakeUserMessage(Player, keyEvent);

		try {
			sendMessage(enc.encode(SUM));
		} catch (JSONException e1) {
			e1.printStackTrace();
		}
		}
	}