handle insertModeKeys better