Space (title screen) - Start game Z Key (title screen) - View changelog Arrow keys (game screen) - Move Eat all the Pac-Dots and Power Pellets to advance to the next level. The four ghosts should be avoided at all costs unless you eat a Power Pellet, in which case they'll get scared and become vulnerable for a bit. Fruit will also appear after enough Pac-Dots are eaten, and can be eaten themselves for bonus points.
Credit to @warfame for the tutorials used to make most of this. Credit to Namco for the sprites of Pac-Man, the ghosts, and the items that can be collected, as well as the sound effects. Credit to "Retro Game Mechanics Explained" on YouTube for details on how exactly the ghosts decide where to move around the map. I had to tweak the exact numbers due to the slightly smaller grid size (in tiles), but everything seems to work fine. Credit to Nintendo for the title screen music, which is from the NES version of Mario Bros. since the arcade and NES versions of Pac-Man have no title screen music for some reason.