Fix the function keys having the wrong mapping
Fix switch snippet and C++ 'base' snippet