Implement workaround in input mapping for bug observed in Chrome.