Why has my blueprint stopped working correctly?

Do not connect Key pins - see my example. A checkbox has no idea what E means. It only knows what LMB is. Use E, just do not connect it.

What would the code for ActorBP and WidgetBP be?

You do not need any other script, the Toggle, the component hit (unless you need physical interaction with the widget).

Also, do not use Get All Actor of Class, you never need it unless you want to do something to ALL actor. You have references to the OnComponentHit node itself. Not needed here but that’s what they are for.