added "key to exit" to pause it before closing window