Help with using input values with variables along with if, else if code

so i should just add handleInput(); into that draw function and it tells the game to check it?