switched to endless loop, unless correct keys pressed