chrome snapshot keypress compatibility