down arrow activate, up arrow deactivate do not press up arrow until the gates go all the way down or it will break.
credit for crossing goes to CoolBoy631