Extract keyboard input to input module, create animated_sprite module