client: add support for input faking