Is it possible to detect crouching?

My current idea is to detect crouch, and if pressed again under a specific time frame (double press) the player enters a crawling state.
Continue to help post