Apart from the fact that you, like so many others, have made the conceptual mistake of assuming that everyone knows how Photoshop works and what works there and how, I am not absolutely sure that this is what you mean. So I’m afraid the actions you want from Photoshop don’t exist in Krita. But I would imagine that you would get much closer to your goal with @yetanotherpainter’s paid plugin, “Actuator”, than with the Krita and graphics tablet options I describe below.
Krita is customizable in large parts, you can load a Photoshop adapted scheme for the keyboard shortcut keys, for example, but it can’t be 100 percent Photoshop compatible, because some keys can’t be remapped without causing major programming difficulties, due to the fact that Krita comes from the Linux world AND has to work not only under Windows and macOS.
Another possibility to create a similar operating concept for all programs can be achieved in the driver of your graphics tablet, if it offers the possibility to assign profiles to programs, as almost all current graphics tablets do.
In the combination of adapting the respective software and driver profiles, it is almost always possible to produce an extremely similar operating concept across all programs, but not always a 100% identical one. And not every software offers every operating concept other software has.
Michelist