Steering the dynamics of a single electron through atomic-scale surface engineering