crouching, jumping and lie down

I only managed to visually code WASD and turning with mouse. I fear to code further jumping, crouching and lie down features. Can somebody give me an example?