change keymap return to list of key-presses