It's a 2-player game! Player 1 uses the arrow keys. Player 2 uses WASD keys. There's no stopping. Once you click a key, your snake will go in that direction until you click another hey. Get the apple before the other player does, but don't touch the edge! If you only want a 1 - player game, then just don't have someone control the other keys.
Thanks to scratchyuni for the blank template!