Make character crouch in fps

ok so thnx to ysuar I kind of know how to code but I still prefer freecodecamp.com but khan academy has improved me so I created this little script PlayCanvas | HTML5 Game Engine and I wanna make a character crouch in fps.Im still a bigginer but ill try my best to understand your comments