diff --git a/tutorials/inputs/input_examples.rst b/tutorials/inputs/input_examples.rst index b2c981df1..34437ce43 100644 --- a/tutorials/inputs/input_examples.rst +++ b/tutorials/inputs/input_examples.rst @@ -194,7 +194,7 @@ the :kbd:`T`: { if (inputEvent is InputEventKey keyEvent && keyEvent.Pressed) { - if ((Keylist)keyEvent.Scancode == KeyList.T) + if ((KeyList)keyEvent.Scancode == KeyList.T) { GD.Print("T was pressed"); }