diff --git a/switch.c b/switch.c
index e984600526778f66e3d4fb1777b974f5b7194ec3..77a3f504287caeebda298fd83cc36831140d1315 100644
--- a/switch.c
+++ b/switch.c
@@ -1,7 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
-#include <conio.h>
 
 #include <wiringPi.h>
 
@@ -27,7 +26,9 @@ int main(int argc, char const *argv[])
             delay(300);
         }
 
-        if ()
+        if (kbhit()) {
+            exit(EXIT_SUCCESS);
+        }
     }
 
     return 0;