Teeheehee, this is a fun bug

This doesn't work because the end.of.loop doesn't work with player inputted animations. What you need to do to get this working, is disabling the cursors-sensitivity of that object. You do this by using the refuse.input();-command (that's just off of the top of my head, might be something similar to that)
Now just treat ego like any other object. When you're finished, be sure to put the accept.input();-command (yet again, might be something similar) to make ego the command-eating pixelblob that it should be.
Hope this clears things up.
-Kon-Tiki-