bool GetKeyDown(string description)
bool GetKeyDown(int descriptionHash)
true only once each time the key is first pressed down.
Use this to determine if a key has been pressed during this frame.
true only once when the key is first pressed down.
The use of
GetKey() is recommended if you want to trigger an event repeatedly while the key is being held down, e.g., for continuous movement.