Is there a way with a macro not to interrupt a channeled spell by pressing a key?

example:

1 is binded to attack key

My mage starts evocation

I want to keep pressing 1 so others can cast but not interrupt the evocation.

There are other cases, other spells but this one will do it

Thanking you all in advance