Hi @Darkforce_the_ilogic_guy. I am not sure I fully understand what you want to do here, but I gave this simple code a try (and various permutations of it) in Inventor 2024, from both an internal iLogic rule, then from an external iLogic rule (ran by right-click on rule, then choosing Run Rule, so that the rule dialog was not showing at the time), and that still did not work. If I just tap the "S" key on my keyboard, while I have a part document open, and not in any other commands, it acts like clicking on the 2D sketch command button, and asks me to choose a plane to start the sketch on. So clearly trying to do this from an iLogic rule is not working the same as you may be expecting.
AppActivate(ThisApplication.Caption)
System.Windows.Forms.SendKeys.SendWait("S")
ThisApplication.UserInterfaceManager.DoEvents
Wesley Crihfield

(Not an Autodesk Employee)