
Take the water gun to the green booth with a round target. Hitting the target makes the Key Code drop in front of the booth. You need to carry that item to the exit.
Pick the right stall
Look along the main path near the red building for a group of three stands. The one you want is green, with a red-and-white target on the upper shelf. Approach from the customer side and use the water gun on the target.
Source: Carnival walkthrough and item locations, Water gun stand and target, Key code lock
Read the keypad response
Pick the code up in front of the stand, carry it to the keypad beside the escape door and use it there. The display turns green and reads OPEN when it accepts the code. If you still can’t leave, look at the door for other locks.
Source: Carnival walkthrough and item locations, Water gun stand and target, Key code lock
Sources
Interfaces and rules can change. Check the official pages above for current requirements.