diff --git a/tutorials/inputs/input_examples.rst b/tutorials/inputs/input_examples.rst index 9a351573086..96972c14acf 100644 --- a/tutorials/inputs/input_examples.rst +++ b/tutorials/inputs/input_examples.rst @@ -203,7 +203,7 @@ the :kbd:`T`: { if (inputEvent is InputEventKey keyEvent && keyEvent.Pressed) { - if ((KeyList)keyEvent.Keycode == KeyList.T) + if ((KeyList)keyEvent.Scancode == KeyList.T) { GD.Print("T was pressed"); }