With KM's built-in Switcher Group you don't need Contexts to switch apps(KM can replace many apps).
If you want to control the last three windows of different apps, you should store some related information about these windows, then you can manipulate these windows using KM.
The problem is: you didn't give KM the right information to let KM know which window/windows to manipulate.