1. A computer-implemented method of translating a first type of input event to a second type of input event, the method comprising: using a computer to perform steps comprising: receiving an input event directed to a document object model of a web page rendered by a browser executing on the computer, the input event generated responsive to a user interaction with an input device of the computer; responsive to the input event being of the first type, stopping propagation of the input event of the first type to the document object model and translating the input event of the first type to an input event of the second type; selectively filtering the input event of the second type; and dispatching the input event of the second type to the document object model of the web page responsive to the filtering.