Handle input from player