I can't seem to find the name of a space anime where some kids are selected to learn how to fly spaceships. Earth is still inhabited and the kids fly to outer space to board a vessel where they are taught lessons and have test flights on spacecraft. I remember that the main character seemed to be particularly gifted in flying spaceships.
In one of the episodes one of the characters got into an accident. In the last few episodes the characters had to fight against an existential threat. The last episode of the anime had a time skip where you could see that the characters were all grownups. I remember there being a black female character in the anime that is an instructor.
I went through all the animes listed under space on my anime list and none of them look familiar or have a similar plot.