Set new default key only if there are any keys