I have seen two constructions called the Heisenberg group. If $k$ is a field of characteristic not equal to $2$ and $V$ is a $2n$-dimensional vector space over $k$ with symplectic form $\omega : V \times V \to k$, one of these groups is $V \times k$ with the operation $(v,a) \cdot (w,b) = (v+w,a+b+\frac12 \omega(v,w))$. The other group is the subgroup of $\text{GL}_{n+2}(k)$ consisting of matrices with $1$s along the diagonal and $0$s elsewhere, except for the top row and rightmost column. This construction has the advantage of working over $k$ of arbitrary characteristic, but unfortunately uses coordinates.
I have two questions:
When $k$ does not have characteristic $2$, are these two groups isomorphic?
Is there a coordinate-free construction of the Heisenberg group in characteristic $2$ (preferably in terms of a symplectic vector space over $k$)?
Edit: Will Sawin has answered the first question in the affirmative. The second question still remains, so let me phrase it more precisely: if $k$ is a field of characteristic $2$ and $V$ a symplectic vector space over $k$, can we give a coordinate-free construction of the Heisenberg group in terms of $V$ which is isomorphic to the matrix group described above? (I am not even sure that we can always choose a symplectic basis in characteristic $2$.)