It's not really a matter of performance, these events are different. "On key pressed" is triggered once. "Is key down" is triggered every tick, about 60 times per second, while the key is down.
Therefore, "Is key down" may be worse for performance if you have lots of actions in this event.