Fix key mappings to work better with panels and snippets.