Repository: flutter
Issue: [file_selector] KeyUpEvent is not Triggered when `getSaveLocation` is invoked
Labels: a: text input,framework,package,has reproducible steps,P2,p: file_selector,team-text-input,triaged-text-input,found in release: 3.27,found in release: 3.28

### Steps to reproduce

Appears on windows, macos, linux is not tested.

1. Run **Code sample**
2. Press Ctrl + S. （show dialog）
3. Release Ctrl + S

### Expected results

1. Down Ctrl
2. Down KeyS
Show Dialog
3. Up KeyS
4. Up Ctrl

### Actual results

1. Down Ctrl
2. Down KeyS
Show Dialog

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:file_selector/file_selector.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    HardwareKeyboard.instance.addHandler((event) {
      print("type: ${event.runtimeType} key: ${event.logicalKey.debugName}");
      print("pressedKey: ${HardwareKeyboard.instance.logicalKeysPressed.map(
        (e) => e.debugName,
      )}");
      return false;
    });

    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      shortcuts: {
        const SingleActivator(LogicalKeyboardKey.keyS, control: true): VoidCallbackIntent(
          () async {
            await getSaveLocation();
            print('SingleActivator(LogicalKeyboardKey.keyS)');
          },
        ),
      },
      home: const Scaffold(
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [TextField()],
          ),
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>


https://github.com/user-attachments/assets/cf5eca33-1dae-49be-8c3e-eb1db188751a



</details>


### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.27.1, on Microsoft Windows [Version 10.0.19045.5247], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.5)
[!] Android Studio (not installed)
[√] Connected device (3 available)
[!] Network resources
    X A network error occurred while checking "https://maven.google.com/": The semaphore timeout period has expired.


! Doctor found issues in 3 categories.
```

</details>