If you don't understand what I mean, let's make an algorithm for dummies ^^: do you stand & do you have pressed x button / \ / \ yes no / \ / \ crouch || if you are crouched & you have pressed x button \ \ stand up EDIT: In editor it seemed awesome, but in my post slashes are fucked up D: