.NET version
.NET SDK 7.0.100-rc.2.22417.1
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, it's a regression issue, cannot repro on .NET 6.0.
Issue description
When running the application with .NET 7.0, an exception pops up, but the same code does not have an exception on .NET 6.0. Please see below gif:

This is the initial feedback ticket: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1590419
Steps to reproduce
- Create a .NET 7.0 WinForms application.
- Add below codes on Program.cs of the Main() method.
Console.WriteLine($"Environment.Version: {Environment.Version}");
const string keyCombination = "Ctrl + N";
Console.WriteLine($"Converting {keyCombination}to keys");
Console.WriteLine($"Converted keys are: {new KeysConverter().ConvertFrom(keyCombination)}");
- Right click the project and press "Alt+Enter" on keyboard , set the Output type of the application is Console Application.
- Build and run the application.
Or
- Open attached application : TestApp.zip
- Build and run the application(TestAppNET7).
Current Behaviors:
An exception dialog pops up, so the printout has missing result.

Call Stack:
System.Collections.Generic.KeyNotFoundException
HResult=0x80131577
Message=The given key 'N' was not present in the dictionary.
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowKeyNotFoundException[T](T key)
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at System.Windows.Forms.KeysConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at TestAppNET7.Program.Main() in C:\Users\v-huli7\Desktop\TestApp\TestApp\TestAppNET7\Program.cs:line 20
Expected Behaviors:
There's no exception dialog pops up and the printout results are correct.

.NET version
.NET SDK 7.0.100-rc.2.22417.1
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, it's a regression issue, cannot repro on .NET 6.0.
Issue description
When running the application with .NET 7.0, an exception pops up, but the same code does not have an exception on .NET 6.0. Please see below gif:

This is the initial feedback ticket: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1590419
Steps to reproduce
Console.WriteLine($"Environment.Version: {Environment.Version}");
const string keyCombination = "Ctrl + N";
Console.WriteLine($"Converting {keyCombination}to keys");
Console.WriteLine($"Converted keys are: {new KeysConverter().ConvertFrom(keyCombination)}");
Or
Current Behaviors:

An exception dialog pops up, so the printout has missing result.
Call Stack:
System.Collections.Generic.KeyNotFoundException
HResult=0x80131577
Message=The given key 'N' was not present in the dictionary.
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowKeyNotFoundException[T](T key)
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at System.Windows.Forms.KeysConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at TestAppNET7.Program.Main() in C:\Users\v-huli7\Desktop\TestApp\TestApp\TestAppNET7\Program.cs:line 20
Expected Behaviors:

There's no exception dialog pops up and the printout results are correct.