Got input selection working