Repository: flutter
Issue: Flutter Web on Windows; Using Windows Clipboard History Freezes Application With Pasting Text into TextFormField
Labels: a: text input,framework,f: material design,platform-windows,platform-web,P2,team-web,triaged-web

## Steps to Reproduce

1. On a computer running **Windows**, Open Windows Settings
2. Search for Clipboard
3. Enable Clipboard History as seen in this image.

![image](https://user-images.githubusercontent.com/79998776/151980347-c1d29316-3f92-4b73-8860-558a3bb996de.png)

4. Create a new Flutter application.
5. Replace main.dart code with the below Code.
6. Selected Chrome as the device
7. Copy some text into your clipboard
8. Run in the application using Debug mode (Start Debugging in VS Code)
9. Using the mouse, click the TextFormField
10. Press Windows Logo Key + Alt.
11. Click the text you copied into the clipboard
12. **App will freeze.**

If you repeat the above steps and run the application without debugging, assert messages will appear in the terminal Debug Console.

**NOTE:** Windows Clipboard History feature works normally when running on Windows and Andriod. 

**Expected results:** 
Text is pasted into the TextFormField

**Actual results:** 
Chrome application freezes.  You'll be unable to edit any text.  Nothing appears in the terminal Debug Console.  There have been times when I had to restart VS Code after this happens because the keyboard can't be used to edit code.

<details>
<summary>Code</summary>

```dart

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Chrome Issue With Windows Clipboard History',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const MyHomePage(title: 'Chrome Issue With Windows Clipboard History'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            TextFormField(),
          ],
        ),
      ),
    );
  }
}

```

</details>

<details>
  <summary>Logs</summary>

```
This Chrome log is only rendered when running in NON-DEBUG mode.  In DEBUG mode, applicaiton freezes, no log it outputted.

Error: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/keyboard_binding.dart:352:16
result != null
"Invalid modifier location: Control, 0"
    at Object.throw_ [as throw] (http://localhost:64409/dart_sdk.js:5063:11)
    at Object.assertFailed (http://localhost:64409/dart_sdk.js:4988:15)
    at http://localhost:64409/dart_sdk.js:170042:39
    at _engine.KeyboardConverter.new.[_handleEvent] (http://localhost:64409/dart_sdk.js:170048:25)
    at _engine.KeyboardConverter.new.handleEvent (http://localhost:64409/dart_sdk.js:170134:27)
    at http://localhost:64409/dart_sdk.js:169775:76
    at loggedHandler (http://localhost:64409/dart_sdk.js:169752:18)
Error: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/keyboard_binding.dart:352:16
result != null
"Invalid modifier location: Control, 0"
    at Object.throw_ [as throw] (http://localhost:64409/dart_sdk.js:5063:11)
    at Object.assertFailed (http://localhost:64409/dart_sdk.js:4988:15)
    at http://localhost:64409/dart_sdk.js:170042:39
    at _engine.KeyboardConverter.new.[_handleEvent] (http://localhost:64409/dart_sdk.js:170048:25)
    at _engine.KeyboardConverter.new.handleEvent (http://localhost:64409/dart_sdk.js:170134:27)
    at http://localhost:64409/dart_sdk.js:169776:74
    at loggedHandler (http://localhost:64409/dart_sdk.js:169752:18)

```

```
>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19043.1466], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.9)
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.63.2)
[√] Connected device (3 available)

• No issues found!
```

</details>