replace modkey with map