Input handling for pads.