The metaKey property is a read-only property and it is used to return a Boolean value that indicates whether the META key was pressed when a mouse event was triggered or not. On windows, this key is not Window key. On Mac, this key is Command key.
Its syntax is:- event.metaKey
Its return is:- true if the META key is pressed else false