Add an event to document that detects when the Shift, Meta (Command), Alt (Option) and Control keys are pressed and released.
If you want to use it in IE, you need to use PollyFill of Object.assign.
I've only tested it with Chrome. Please comment if it doesn't work in other browsers.