gate opens in response to key