Keypad and Hypersonic loop fail

Hello,

I have a little problem.
I use a 4x4 Keypad and i want to use hypersonicsensors but when they are in the loop i can't use them together the keys are no more seen in the serial monitor .
Can anyone help me?
I use a Texas Intruments but the code is the same.

#include <Password.h>             //Eingebundene Passwort Bibliothek zur Getränkebestimmung
#include <Keypad.h>               //Eingebundene Tastatur Bibliothek        
#include <Wire.h>
#include <LiquidCrystal_I2C.h>    //Eingebundene LCD Bibliothek 

//Korn
Password pw1    = Password( "A1" ); //Cola Korn 2cl


#define Cola PB_2                 //schaltet Relais 1 Cola
#define Fan  PE_0                 //schaltet Relais 2 Fanta
#define Spr  PA_5                 //schaltet Relais 3 Sprite
#define Korn  PB_7                 //schaltet Relais 4 Havanna
#define Wod  PB_6                 //schaltet Relais 5 Bacardi
#define Hav PA_4                 //schaltet Relais 6 Korn
#define Bac  PA_3                 //schaltet Relais 7 Wodka
#define TR1  PF_2                 //Tastenreihe 1
#define TR2  PF_3                 //Tastenreihe 2
#define TR3  PB_3                 //Tastenreihe 3
#define TR4  PC_4                 //Tastenreihe 3
#define TS1  PC_5                 //Tastenspalte 1
#define TS2  PC_6                 //Tastenspalte 2
#define TS3  PC_7                 //Tastenspalte 3
#define TS4  PD_6                 //Tastenspalte 4
#define USS1E  PB_0               //Echo Ultraschallsensor 1 Cola
#define USS2E  PE_4               //Echo Ultraschallsensor 2 Fanta
#define USS3E  PB_4               //Echo Ultraschallsensor 3 Sprite
#define USS4E  PD_1               //Echo Ultraschallsensor 4 Havanna
#define USS5E  PD_3               //Echo Ultraschallsensor 5 Bacardi
#define USS6E  PE_2               //Echo Ultraschallsensor 6 Korn
#define USS7E  PE_3               //Echo Ultraschallsensor 7 Wodka
#define USS1TR  PB_5              //Trigger Ultraschallsensor 1 Cola 
#define USS2TR  PB_1              //Trigger Ultraschallsensor 2 Fanta 
#define USS3TR  PE_5              //Trigger Ultraschallsensor 3 Sprite 
#define USS4TR  PD_0              //Trigger Ultraschallsensor 4 Havanna 
#define USS5TR  PD_2              //Trigger Ultraschallsensor 5 Bacardi 
#define USS6TR  PE_1              //Trigger Ultraschallsensor 6 Korn 
#define USS7TR  PF_1              //Trigger Ultraschallsensor 7 Wodka 
#define Lichtschranke             // Lichtschranke Digital Anlage bereit wenn Glas vor Ort
                                  //SCL(3) PD_0 LCD Display
                                  //SDA(3) PD_1 LCD Display
#define flbandN                   //Fliessband vorlauf bis Nozzle in ms
#define flbandEnd                 //Fliessband vorlauf bis Ende in ms
#define cl2   500                 // Schnaps 2cl ausschenken in ms
#define cl4   1000                // Schnaps 4cl ausschenken in ms
#define cl6   1500                // Schnaps 6cl ausschenken in ms
#define Mix   4000                // Mischgetränk ausschenken in ms
#define Glas  5000                // Pur in ms
#define Auffüllen                 //Auffüllen in ms

LiquidCrystal_I2C lcd(0x27, 20, 4);   //Adresse 0x27
                                      //20 ist die Angabe der Stellen in der Reihe
                                      //4 die Angabe der Reihen

 bool wert1 = 0;
byte entfernung1 = 0;

const byte ROWS = 4; // Four rows
const byte COLS = 4; //  columns

// Define the Keymap
char keys[ROWS][COLS] = {
  {'1','2','3','A'},
  {'4','5','6','B'},
  {'7','8','9','C'},
  {'*','0','#','D'}
};

byte rowPins[ROWS] = {PF_2,PF_3,PB_3,PC_4}; //Rows 0 to 3
byte colPins[COLS]=  {PC_5,PC_6,PC_7,PD_6}; //Columns 0 to 3


// Create the Keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
  
void setup() {

   Serial.begin(19200);
  keypad.addEventListener(keypadEvent);
   
  //Relais
  pinMode(Cola, OUTPUT);
  

  //Ultraschall 
  pinMode(USS1TR, OUTPUT); // Trigger-Pin ist ein Ausgang
  pinMode(USS1E, INPUT); // Echo-Pin ist ein Eingang
  
    
  lcd.init();                         //initialize the lcd
  lcd.backlight();                    //open the backlight


  lcd.setCursor ( 0, 0 );             // Starte in Stelle 0 in der Reihe 0 (1. Reihe)
  lcd.print("Cola");                  // Text zur oben definierten Reihe
  
  
  lcd.setCursor ( 10, 0 );            // Starte in Stelle 0 in der Reihe 0 (1. Reihe)
  lcd.print("Fanta");                 // Text zur oben definierten Reihe
  
  
  lcd.setCursor ( 0, 1 );             // Starte in Stelle 0 in der Reihe 1 (2. Reihe)
  lcd.print("Sprite");                // Text zur oben definierten Reihe
  
  
  //lcd.setCursor ( 10, 1 );            // Starte in Stelle 0 in der Reihe 1 (2. Reihe)
  //lcd.print(" ");                      // Text zur oben definierten Reihe
  //lcd.setCursor (18,1);
  //lcd.print(" ");
  
  lcd.setCursor ( 0, 2 );             // Starte in Stelle 0 in der Reihe 2 (3. Reihe)
  lcd.print("Havanna");               // Text zur oben definierten Reihe
  
  
  lcd.setCursor ( 10, 2 );            // Starte in Stelle 0 in der Reihe 2 (3. Reihe)
  lcd.print("Bacardi");               // Text zur oben definierten Reihe
  
  
  lcd.setCursor ( 0, 3 );             // Starte in Stelle 0 in der Reihe 3 (4. Reihe)
  lcd.print("Korn");                  // Text zur oben definierten Reihe
  
  lcd.setCursor ( 10, 3 );            // Starte in Stelle 0 in der Reihe 3 (4. Reihe)
  lcd.print("Wodka");                 // Text zur oben definierten Reihe
  
  
  


}
void loop(){
  keypad.getKey();

   //Abfrage Ultraschallsensoren Flasche da oder nicht (1/0)
  //Cola
  digitalWrite(USS1TR, LOW);
  delay(20);
  digitalWrite(USS1TR, HIGH);
  delayMicroseconds(10);
  digitalWrite(USS1TR, LOW);
  entfernung1 = (pulseIn(USS1E, HIGH) / 2) * 0.03434;
  
  if (entfernung1 <= 20) wert1 = 1;
  else wert1 = 0;
lcd.setCursor(8,0);
lcd.print(wert1);    

}

//Passwort 1 
void keypadEvent(KeypadEvent eKey){
  switch (keypad.getState()){
    case PRESSED:
  Serial.print("Pressed: ");
  Serial.println(eKey);
  switch (eKey){
    case '*': checkPassword(); break;
    
                  
    default: pw1.append(eKey);

     }
  }
}

void checkPassword(){
  
  //Cola Korn 2cl
  
  if (pw1.evaluate()){
    digitalWrite(Korn,HIGH);
    delay(cl2);
    digitalWrite(Korn,LOW);
    
    digitalWrite(Cola,HIGH);
    delay(Mix);
    digitalWrite(Cola,LOW);}
    
                                         
  pw1.reset();
  
  }

Use the NewPing library to handle the ultrasonic sensor. It will measure the pulse duration in the background so your code doesn't have to wait.

thanks:)

  keypad.getKey();

If you don't care what key was pressed, why do you bother to call the function?