How can I simulate the Esc key to end an image/video being loaded?

How can I simulate the Esc key to end an image/video being loaded ?

I found that hitting the Esc key on some sites saves data.

I have the suspend so that if I hit the ~ key, my computer suspends.

But I do not know where that is.

It is not in startup.

Thanks.