You might have better luck in the https://forums.unrealengine.com/forumdisplay.php?6-Blueprint-Visual-Scripting section… but…
Try adding a function override for On Key Down or On Key Char and then close the widget on that event if the key is ‘B’. Not the best way, but until UE4 has better BP regarding input bindings, it’ll work.