I also had a need to Crouch on keypress and UnCrouch on key release, so using your excellent examples I made a simplified solution that works. Hope this helps others. If you have a need for a keypress event use this as a starting point.