catch KeyboardInterrupt when entering API token