make keymap code easier