Fix keys quirks for different browsers