handle input (1p only for now)