Press the space or up arrow key to jump. Try not to touch the black.
This is one of my first projects and I had lots of help from a YouTube video, published by "Code masta". Thank you very much for the inspiration.