I am developing a class library in .NET Standard 2.0 that should control some other application using Keystrokes. I need to write the library in .NET Standard 2.0 since I have two client applications that will be using the library, one in .NET Framework 4.8 and one in .NET 5, which both support System.Windows.Forms.SendKeys.
What would be the right approach to solve this problem?