from selenium.webdriver.common.keys import Keys
element = driver.find_element_by_tag_name("body")
element.send_keys(Keys.SHIFT + Keys.ALT + Keys.UP)
from selenium.webdriver.common.action_chains import ActionChains
ActionChains(driver).key_down(Keys.SHIFT).key_down(Keys.ALT).send_keys(Keys.UP).perform()