Just paste or type it in in the box under right command…
If you are looking for a way to post-edit a button and access the macro library via the button editor - you can’t… This is a glaring shortcoming which I have posted about several times.
For this I can only suggest to delete the original button and create a new one from scratch via the wizard which does allow you to choose macros from the library for both left and right buttons.