make key sequences in popups adapt to command bindings