I think you want some brackets around
ctx.input(|i| i.key_pressed(Key::B) && i.modifiers.command_only())
unless you expect the user to Cmd-click the Confirm
button...