onValueChange event handler is toggling the keyPressedSinceTimer value. But I can't see where the value is used. Regardless it's true or false.