@Override
	public void keyTyped(KeyEvent e) {
		if(e.getKeyChar() == this.editor.getCommandChar()) {
			this.view.getCommand().setVisible(true);
			this.view.getCommand().setText(this.editor.getCommandChar()+"");
			this.view.getCommand().requestFocusInWindow();
		}
		else switch (e.getKeyChar()) {
		case '\u0008':
		case '\u007F':
			break;
		case '\n':
			this.editor.newLine();
			break;
		default:
			this.editor.insertChar(e.getKeyChar());	
			
		}
		view.getDocument().setText(this.editor.print());
	}