Java programming with Greenfoot: play the game (teacher commentary)
By this stage in the series of video tutorials, students have created a game in which a turtle eats lettuces whilst being chased by snakes. In this tutorial, students are shown how to implement keyboard controls so that they can control the turtle. This is achieved using the Greenfoot application processes interface (API), explored in Resource 6, to enable keyboard controls to be installed. Using text (strings) is also explained as is a shortcut to use a list of methods (instructions for a class of object).
More resources can be found here