made escape key the key that closes the appcliation