I think @Hellis81 has you down the right track, and if you also still need to capture harmony button presses see this: