Key script fixed, it's possible to take key now even with gate opened