added keylisteners to the animation example