Fix for #1278: add keymap instead of replacing it

Fix for #1278