Pet rats have strong spatial memory and use their keen sense of smell, whiskers, and hearing to navigate complex environments. They rely on their excellent memory to recognize landmarks and remember the layout of the area they are exploring. Additionally, their whiskers help them sense nearby objects and walls, while their sense of smell helps them detect food sources and potential threats. Overall, a combination of these senses and their sharp memory allows pet rats to successfully navigate intricate environments.