def add(): keychooser.unit_to_bind = unit gui.change_to_card_fast(gui.Card(keychooser.widgets()))
def kill_key(): env.key_bindings[key].remove(unit) gui.change_to_card_fast(gui.Card(pause_screen_widgets()))