Key button Clash and flags update