What matters
The documents that set the limits for a keypad entry install.
An access control equipment standard, the ADA design standards, and manufacturer sheets each state requirements; your AHJ or attorney decides how they apply.
Linear's AK-11 manual carries this warning for gate keypads: "TO AVOID SERIOUS INJURY OR DEATH, MAKE SURE THAT THE UNIT IS FAR ENOUGH FROM THE GATE SO THAT THE USER CANNOT TOUCH THE GATE WHILE OPERATING THE KEYPAD. HOWEVER, THE GATE MUST BE FULLY VISIBLE FROM THE KEYPAD."
See all before and after photos