You indentation is horrendous making it difficult to read your code.

When does jump get set to false? I understand your answer will be when user releases the space bar but in the code above...