IsKeyPressed()

var score = 0
while (score <= 50)
{
 if (IsKeyPressed("Up"))
 {
  score = score + 1
 }
 if (IsKeyPressed("Down"))
 {
  score = score – 1
 }
 if (IsKeyPressed("b"))
 {
  break
 }
}

Close