In printer configuration there are scripts to run on insert and remove filament. Script are run before starting retract/undo distance. So here you can add extra gcodes to be called when you hit the button like motor off, wait then slow insert first or what ever you want.