private void ctEditor_PreviewKeyDown_1(object sender, System.Windows.Input.KeyEventArgs e) { switch (e.Key) { case Key.Space: currentFichero.EscribirCaracter(' '); cargarFlowDocument(); break; case Key.Back: cargarFlowDocument(); break; case Key.Enter: currentFichero.Enter(); cargarFlowDocument(); break; case Key.Left: currentFichero.MoverCursorIzquierda(); cargarFlowDocument(); break; case Key.Right: currentFichero.MoverCursorDerecha(); cargarFlowDocument(); break; case Key.Up: currentFichero.MoverCursorArriba(); cargarFlowDocument(); break; case Key.Down: currentFichero.MoverCursorAbajo(); cargarFlowDocument(); break; } if (e.Key == Key.Left) { } }