Thanks James for 1. replying me so promptly (I'm sure you are busy with other important tasks). 2. Helping guide me into solving my problem. i totally missed a crucial step that was glaring after watching you youtube video. I am posting the code below. Even though it is a very simple command, I hope it can be helpful to other users (maybe other newbies like me).
<?xml version="1.0" encoding="utf-16"?>
<command id="537" name="Toggle window" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XJson.Btn.KB</cmdType>
<cmdString>backslash</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Toggle window, backslash, expand window, contract window</phrase>
</command>