Bluetooth Driver For Windows 10 Pro 22h2

I would do it the other way around. Have the shortcut key be your activation for PAD. When it gets the shortcut key command, then it checks, If window is in focus, do something, else, go (back) to Label (WaitingForShortcutKey).