You can affect a spell to a specific key.
Exple : time=> Q; bomb => W, plant =>E, fire=>R, wind=>T.
Or if you still want to use the grid system, you can affect a specific key to each cell.
I think the first method is better because you wont have to pause the game while the player is casting a spell. He types a combination of keys and the spell casts at the mouse position.