def actually_start_listener():
    global current_listener
    global stopped
    stopped = False
    while True:
        if stopped:
            return
        with keyboard.Listener(on_press=on_press, on_release=on_release) as listener:
            current_listener = listener
            try:
                listener.join()
            except KeyError:
                print('Non-fatal error. MassiveMacro will continue to run.')
def actually_start_listener():
    global current_listener
    global stopped
    stopped = False
    while True:
        if stopped:
            return
        with keyboard.Listener(on_press=on_press, on_release=on_release) as listener:
            current_listener = listener
            try:
                listener.join()
            except KeyError:
                print('Non-fatal error. MassiveMacro will continue to run.')