Hi, Kristina! Nice meeting you electronically -- ironically, maybe we've walked past each other at the Breakwater, hehe.
Yes, there are courses for search and recovery (where you learn how to look for and find stuff underwater and how to bring it out) and navigation (how to get from point A to point B).
Something that really helps is to know how you orient yourself. When shopping at the mall, do you keep in your mind a mental map of where you are in relation to the entrance, your car, etc? Or do you rely on visual cues, like which shops you have passed? Or do you memorize the turns that you have made? Some people kind of "sense" where they are, always. They know in which direction they need to walk to get back to the car, and I'm very impressed by that. I just have a tiny bit of that, I'm more into visual cues and having in my mind at least a basic map of the area (the dive site, the shopping mall, the city), so when diving I try to have at least a general description of the site and then I keep mental notes of noteworthy features -- but still, it's pretty impressive how similar some things look underwater! "Wow, was this the rock where I turned left? I thought that it was still far away." Since I don't have that magic internal radar or GPS, in complex sites I'm more into the "progressive penetration" where you gradually expand your range, learning the site little by little.
And also, don't worry too much about it. The ocean is pretty large and even in relatively simple places like the Breakwater there is enough area (and not enough visibility) to get anyone turned around. I remember finding one anchor block that was very interesting, but instead of swimming directly on an azimuth and counting kick cycles until I got to the wall or a known feature, I swam randomly on a contour looking for a known feature. And of course, when I tried to get back, I couldn't find it!
Another way when you _really_ want to find something again is to surface right there (if safe and possible, of course) and get some line ups with features on the beach.
Wow, I didn't mean this post to be this long! OK, time to go to bed.