@Override
	public void executeCommand(String c) {
		if (c.equals("" + this.getCommandChar())) {
			this.insertChar(c.charAt(0));
			return;
		}
		int i = 0;
		while (i < this.commands.size() && !this.commands.get(i).match(c)) {
			i++;
		}
		if (i >= this.commands.size())
			throw new CommandNotFoundException(c);
		else
			this.commands.get(i).execute(c);
	}