Check for metaKey being pressed

This allows (at least on OS X Safari and Firefox) to use the shortcut
keys involving the Cmd (meta) key. Previously trying to use those
shortcuts would result in it being treated as a normal keypress.