State-of-the-art X-ray spectroscopy allows femtosecond gating of energy levels of photo-excited molecules on a metal substrate enabling ultrafast and bi-directional charge transfer across the interface with controllable dependence on the molecular adsorption geometry.