Space to jump, if you try to cheese it by jumping before the tree to get a point, good luck because then it will be impossible to jump to get another point.
I changed the code a bit and the sprites Credits to: https://www.youtube.com/watch?v=1jHvXakt1qw&t=24s