Press space to move the elephant. Press the up arrow to move the dog. Press Q to move scratch the cat. Get to the green line to win! (You might have to click the green flag twice to start the game.)
Credit to @18GOZN