Input: add match() method to input hanlders