Wonky platformer physics - dunno what to do

Here’s the file: www45.zippyshare.com/v/85866412/file.html

Problem: When jumping and using left/right movement, pea can fly indefinitely for unknown (for me) reason. Can you help me?

First event : When Left or Right is pressed, no gravity is applied?

STUPID STUPID STUPID! Geez, sometimes I wonder why am I so big idiot…

Thanks, Florian.