There are only 24 possible combinations of a 4 digit code anyway (assuming 4 different digits). I doubt the devices do a lockout on the wrong code, so it wouldn't take that long to hack.
>I've actually encountered keypads where the order didn't actually matter
If the order really doesn't matter, then that counts combinations twice (1234, 1243..). There are 10000 possible 4-digit codes, 5040 permutations, and actually 210 combinations.