Remember that $e^z$ has a very different meaning than $e^x$ (taking $z\in\mathbb{C}$ and $x\in\mathbb{R}$).
If the exponent was real, then, as you state in your question:
$$e^x = 1 \iff x=0$$
However, when the exponent is complex, this function acquires a very different meaning. Let $z=x+jy$, where $x,y\in\mathbb{R}$ and $j$ is the imaginary unit. Then
$$e^z=e^{x+jy}=e^x \cdot e^{jy}$$
The first factor is real and, therefore, equals $1$ if and only if $x=0$. The second factor, however, has a purely imaginary exponent (such as the one in your question). Such a function can be calculated as:
$$e^{jy}=\cos(y)+j\sin(y)$$
As you can see, this function is periodic. In your case, $y=-2\pi k$, with $k\in \mathbb{Z}$. Then
$$e^{-j2\pi k}=\cos(-2\pi k)+j\sin(-2\pi k)$$
Cosine is an even function and sine is odd, so
$$\cos(-2\pi k)+j\sin(-2\pi k)=\cos(2\pi k)-j\sin(2\pi k)$$
What are the values of $\cos(2\pi k)$ and $\sin(2\pi k)$? Well... they seem to depend on $k$. But... do they? The answer is no.
The cosine equals $1$ for any multiple of $2\pi$. The sine equals $0$ for any multiple of $2\pi$. This leads to the final result:
$$e^{-j2\pi k}=\cos(2\pi k)-j\sin(2\pi k)=1-j0=1 \ \forall k$$