You can check this question to refer about this - Key press in (Ctrl+A) Selenium WebDriver
Check the answer which uses the chord method, in your case you can do this -
String selectAll = Keys.chord(Keys.ALT, Keys.SHIFT,"z");
driver.findElement(By.tagName("html")).sendKeys(selectAll);