Familiarity with locating larger intervals at the keyboard comes with time and experience.
Meanwhile, you can practice locating keys on the piano through tactile sense. Using the visual senses to locate keys often produces quick results, but can lead to the under development of using other senses and methods to locate keys.
Some exercises to try:
Locate individual notes using the entire gamut of 88 keys. Close your eyes, use a blindfold if you feel tempted to look. Place your hands on the keys, and move them laterally across the keyboard without sounding any pitches, always keeping in contact with both white and black keys. Feel your way around the keyboard using your tactile sense. Using this sensation of feeling your way around the piano without sounding notes, select a pitch in your mind, then locate all keys of that pitch.
In this order: move your hands using tactile sense, locate the key without playing it using tactile sense, sound the pitch and confirm with your ears if it is correct, finally take a peek with your eyes and confirm if your selection is correct.
Another exercise:
Take a familiar hand position, such as 5-note, triad, octave, or 4 note chord. With closed eyes, use your tactile sense to locate intervals inside of that position. Use that 5-note pattern, triad, octave or 4 note chord as your reference.
For example: Using the triad of C-E-G. Close your eyes, and try to find these intervals:
D-F
C-D
D-E
E-F
F-G
Db-F
D-F#
C#-E
D-G
C-F#
C-G
and so on...
Practice with both hands.
Another exercise:
This time we use the eyes for part of the activity. Hands off the keyboard, visually select a key. Close your eyes, place hands on keyboard, and find the key using only tactile sense. Play the key and confirm with your ears if correct.