Playing a button pressed animation on a box

I have a boxin my world (made in onGUI) and was wondering if it was possible to do a have a simular animation as the button press be played on the box?

I have a spell that is cast when the key 1 is pressed. I have a box displaying the name and hotkey and also if the player is in range or not. I want to have an animation that shows when the spell button is being pressed. Is this possible or is it just a stupid idea?

yes it is if(Input.GetButtonDown(yourButton) { // this is where your animation starts }