define key behavior by mode-name