Fix keyboard event detection in Opera (#1489929)