replace keyboard menu by mode menu