hello guys I\'m trying to update a state when the space bar is clicked but it seems that the state value is not change and always print 0
here is what I tried :