add metaKey rule to event cancel function

I did CMD+L in a term.js app and it didn't focus my browser URL bar, hence this PR! I am not sure if this breaks anything but it seems to work for me