I wouldn’t worry. Vehicles have entire systems designed to capture gas fumes and prevent them from escaping the filler pipe.Only 1 way to find out. Do it and report back. Looks like a good location but I worry gas fumes will degrade the plastic.
Additionally the key pad should be constructed out of plastic designed to hold up to road grime… oils, tars, gas, and other harsh chemicals.