Here is the code that I tried to execute, but failed:
public class Game extends Canvas implements Runnable,KeyListener {