Detecting any keypress

Mystery solved, the order of things were (1) load default window (by accident, wrong config file) (2) specify button down events (3) load another window where things actually happen. It appears the events were associated with the first window that I didn’t even realize existed.