External utilities such as Bome MIDI Translator Pro (BMT) and AutoHotKey can probably do what you need, I’m not aware of any internal way of doing so.
In BMT, for example, we can assign a shortcut to first trigger the Recall command, and then, after a short delay, trigger (type virtually) whichever number we want (10 to 30) plus Enter.