Making a quize robot

I tried it like this:

void loop() {
 
 for (int x = 1; x<16; x++) { 
  if (x == 1){ 
    File myFile = SD.open("1. Pitanje.txt");
  if (myFile) {
    tft.print("1. Pitanje.txt");
    Serial.println("1. Pitanje.txt");
  while (myFile.available()) {
    tft.print(myFile.read());
    char keypressed = key.getKey();
    Serial.println(keypressed);
  }

But nothing happend, still nothing works. The serial monitor shows nothing.