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.
Environment
iMac (Retina 5K, 27 inch, Late 2015)
Magic Trackpad 2
macOS 10.14.5
BTT Version 3.07