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