Let $E:= \{(x_n) \in l^{2}(\mathbb N ) \mid x_{2k}=x_{2k+1}\}$
How can I show that $E$ is a closed subvector space of $l^{2}(\mathbb N )$ ?
I tried to write $E$ as the kernel of a continuous linear form but I ended with $T:l^{2}(\mathbb N) \rightarrow \mathbb R : (x_n) \rightarrow \sum_{n=0}^\infty |x_{2k}-x_{2k+1}|$
which is not linear.
You didn't quantify whether it is for all $k\in\mathbb{N}$ or for a single $k\in\mathbb{N}$.
For each $k\in\mathbb{N}$, note that $(x_n)\in\ell^2(\mathbb{N})\mapsto x_{2k}-x_{2k+1}\in\mathbb{F}$ is continuous and linear. So its kernel is a closed subspace of $\ell^2(\mathbb{N})$.
If your $E$ is $\{(x_n)\in\ell^2(\mathbb{N})\mid x_{2k}=x_{2k+1}\quad\forall k\in\mathbb{N}\}$, then we take intersection of closed subspace, so it is also a closed subspace.