Set current window to a group

I want to switch to another group via keyboard.
trying to adjust this script Move | Duplicate| Replicate selected records [+LaunchBar] but everything is figured out except for the ‘set the current window to this group’ part.