Improved isHotkey function
Improved isHotkey function

Much shorter way of typing the same thing as before. Also, by having the hotkeys variable defined before it is more efficient as well.
PicturElements/picturelements.github.io,PicturElements/picturelements.github.io,Ed-ButteredToast/deformedlenny,Ed-ButteredToast/deformedlenny