You can basically become invincible from the 5th key level onwards, with the exception of the 6th. Eat a power pill on these levels and the ghosts will remain vulnerable for the rest of the level unless you eat them.