press space to chage states working