expected unqualified-id before'{' token

i'm trying to get my motor to turn on by push button and run for 1 minute then shut off.but i keep getting this error message when i try to compile.(Arduino: 1.6.4 (Mac OS X), Board: "Arduino Uno"

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/chrisfisher/Library/Arduino15/packages/arduino/hardware/avr/1.6.4/cores/arduino -I/Users/chrisfisher/Library/Arduino15/packages/arduino/hardware/avr/1.6.4/variants/standard /var/folders/vq/93q1xgpx4v30m70p7zmzhn_w0000gn/T/build2312616869697043999.tmp/DC_Motor_Control2.cpp -o /var/folders/vq/93q1xgpx4v30m70p7zmzhn_w0000gn/T/build2312616869697043999.tmp/DC_Motor_Control2.cpp.o
DC_Motor_Control2.ino:26:3: error: expected unqualified-id before '{' token
expected unqualified-id before '{' token)

/***************************************/
const int keyPin = 12;
const int motorPin = 9;
const int motorIn1 = 9;  
const int motorIn2 = 10;  
/***************************************/
void setup()
{
  pinMode(motorIn1,OUTPUT);   
  pinMode(motorIn2,OUTPUT);  
}
/****************************************/
void loop()
{
  if(digitalRead(keyPin) ==HIGH )
  {
    digitalWrite(motorPin,HIGH);
  }

  delay(60000);  //wait for a second
  analogWrite(motorIn1,0);
  analogWrite(motorIn2,0);
  }
  
  {
   if(digitalRead(keyPin) ==LOW )

  {
    digitalWrite(motorPin,LOW);
    analogWrite(motorIn1,0);
    analogWrite(motorIn2,0);
  }
  }

Figure out where your loop() function ends,

Use ctrl-T to auto format your code and it will probably become obvious.

Delay(60000) is not one second, it is one minute!

const int motorPin = 9;
const int motorIn1 = 9;

digitalWrite(motorPin,HIGH);Pull-ups waggling