I was just saying that the code I've posted is what I just copied and pasted from my own project without editing the variable names first. I didn't work on the Zombie project you got your code from. Just change the w,a,s and d keys in my code to the movement codes of your own game, and make any other changes you need to.

while(me.health > 0) is useful because you don't want the player to still be able to move about after his health drops to zero. My game doesn't feature a health bar that's why I don't have it in my code. The most important lines you need from my code are the ones that have these variables in them:
feet, distancedown, my.gravity.
If you understand those lines, you can just incorporate them into your own movement code