private void TxtBoxDirectory_KeyDown(object sender, KeyEventArgs e) { switch(e.Key) { case Key.Enter: NavigateToTypedFolder(); break; } }