Changing Key Inputs of Players

Is there a way to change the Key Inputs of the players throughout a certain period of time? So that in this period when a player is pressing the key for “IN_ATTACK2”, “IN_ATTACK” will be processed instead etc.

I thought you could use the KeyPress hook for that and return another key value than it was pressed, but I think this is not working. So wanted to ask here, if there is a way to achieve that.

Thanks in Advance.