trigger event on top-level keypress