Seen this code before, but it doesn't seem to work for me. If anyone gets it to work, let me know.
On the first level, eat one ghost.
On the second level, eat two ghosts.
On the third level, eat three ghosts.
On the fourth level, eat four ghosts.
Now press Up, Down and Up.
Kill Pac-Man.
Now you should have infinite lives.