Repository: flutter
Issue: [Web][Edge][Production] Spacebar key sometimes does not work
Labels: a: text input,c: regression,platform-web,e: web_canvaskit,a: production,browser: edge,P2,team-text-input,triaged-text-input

### Steps to reproduce

Flutter web, app running on MS Edge, production (not durign dev mode).

1. If you have one or more TextFields inside a SingleChildScrollView (mostly observed when:  the page is so long that it doesn't need to actually scroll), the spacebar might not work when clicked on.
2. If you hit F5 to "soft" refresh the page, the spacebar works again.
3. MS Edge (tested and observed on v128.0.2739.67)
4. Chrome browsers works as expected here.



### Expected results

I Want the spacebar to produce a space in the textfield

### Actual results

Nothing happens sometimes when I hit spacebar .

### Code sample

<details open><summary>Code sample</summary>

```dart
return Column(
      crossAxisAlignment: CrossAxisAlignment.stretch,
      children: [
        Expanded(
          child: SingleChildScrollView(
            controller: ScrollController(),
            child: Card(
              child: Padding(
                padding: const EdgeInsets.all(4.0),
                child: Column(
                  children: [
                    Padding(
                      padding: const EdgeInsets.all(4.0),
                      child: Center(child: Text(AppLocalizations.of(context).addRequestsCardCreateRequestDraft,style: const TextStyle(fontSize: 16),),),
                    ),
 [...]                   
                    Row(
                      children: [
                        Expanded(
                          child: Padding(
                            padding: const EdgeInsets.all(4.0),
                            child: TextField(
                              maxLength: 40,
                              controller: infTEC,
                              decoration: InputDecoration(
                                counterText: "",
                                floatingLabelBehavior: FloatingLabelBehavior.always,
                                border: const OutlineInputBorder(),
                                label: Row(
                                  mainAxisSize: MainAxisSize.min,
                                  children: [
                                    Text(AppLocalizations.of(context).addRequestsCardShortAssignmentDescription),
                                    SizedBox(width: 4,),
                                    Text("*", style: TextStyle(color: Colors.red, fontSize: 18, fontWeight: FontWeight.bold),)
                                  ],
                                ),

                              ),
                            ),
                          ),
                        ),

                        Expanded(
                          child: Padding(
                            padding: const EdgeInsets.all(4.0),
                            child: Tooltip(
                              message: AppLocalizations.of(context).addRequestsCardDraftCommentWillOnlyBeVisibleInLocalStoredDraftAndInTheRequestConfirmingEmail,
                              child: TextField(
                                maxLines: null,
                                controller: commentTEC,
                                decoration: InputDecoration(
                                  floatingLabelBehavior: FloatingLabelBehavior.always,
                                  border: const OutlineInputBorder(),
                                  label: Text(AppLocalizations.of(context).addRequestsCardDraftComment),
                                  
                                ),
                              ),
                            ),
                          ),
                        ),
                      ],
                    ),
[...]
                   
   
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel beta, 3.25.0-0.1.pre, on Microsoft Windows [Version 10.0.22631.4169], locale nb-NO)
    • Flutter version 3.25.0-0.1.pre on channel beta at C:\Flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d3733fcb0e (3 weeks ago), 2024-08-21 10:27:04 -0500
    • Engine revision 062b3a72fc
    • Dart version 3.6.0 (build 3.6.0-149.3.beta)
    • DevTools version 2.38.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at c:/android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: c:\program files\java\jdk-17\bin\java
    • Java version Java(TM) SE Runtime Environment (build 17.0.11+7-LTS-207)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.1)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.10.34928.147
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2023.3)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2023.3.1.20
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)

[√] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2024.1.2.12
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2024.1.2.8
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2024.2.2.1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)

[√] Connected device (4 available)
    • SM T515 (mobile)  • R52NB09L7ZP • android-arm    • Android 11 (API 30)
    • Windows (desktop) • windows     • windows-x64    • Microsoft Windows [Version 10.0.22631.4169]
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 128.0.6613.120
    • Edge (web)        • edge        • web-javascript • Microsoft Edge 128.0.2739.67

[√] Network resources
    • All expected network resources are available.

• No issues found!

```

</details>