Passcode lock device with gesture