Fix closing of the "move keys" popup