Setting a keyboard shortcut (With any application) for a double-tap action on the touchpad does not result in the keystrokes you set (Command + W)
I have confirmed that BTT is responding in the action.
iMac (Retina 5K, 27 inch, Late 2015)
Magic Trackpad 2
BTT Version 3.07