The “Learn transpose” feature should be able to handle that, I would assume? But I am not sure how to invoke the “Learn transpose” feature on the fly …
There is a short intro here: New in 3639 - Learn Key Range, Learn Transpose and associated bindings