Let's add the ability to control our snake. To handle key presses, override the Game parent class's onKeyPress(Key) method. Depending on which key is pressed, set the appropriate direction of snake movement. Bear in mind that a snake cannot instantly turn 180 degrees.
Snake (Part 11/20)