You can use the same key in the new computer if you uninstall the old installation or format the disk. It’s ok, avast won’t consider you’re using the same key in two different computers.