The ability to selectively focus on certain stimuli while ignoring others, which is crucial for encoding and retrieval.