Use the arrow keys to feed him or to send him to sleep. Once you get 5 sleeps and 5 eats correctly you win.
Click HERE for the full Flash document.