Input: add input_set_capability() helper