Use the keys to move your snake around. You can cross yourself as much as you want.
https://www.youtube.com/watch?v=nkDmcsGIIoM Here it teaches you how to make a neat game. 1 day and 4 hours of work!