Use the arrow keys to get to the green. If you touch black then you will be sent back to the start. Collect the key to unlock the exit. Collect the blue collectibles.
I made this project ages ago for school, (hence the bad quality) and currently do not have any plans to update it.