Change font of selected text

New to BTT and JS. I was looking to build a Trigger where I can change the font of selected text and I almost always use the same destination font (say Font1 for normal text and Font2 for a code snippet). It just takes too many clicks to do it right now. I was looking to trigger this from BTT with some keyboard shortcuts so that I can keep up the flow.