Modified method for checking whether modifier keys should be automatically released when calling sendKeys, either from an element or from the actions class.