~~NOTOC~~ <=[[4rpl:start| Index]] ====== GetKeyDown ====== GetKeyDown(<-key <-ignorePressesOverUI) ->val ===== Description ===== Returns a boolean indicating if the specified Key was pressed during the game frame. Note: This only return true once until the key is released and pressed again. The first argument is a string that specifies which key to check. The second argument indicates whether to ignore the events when the cursor is over the UI. The list of possible values for the first argument can be derived from the enumeration for [[https://docs.unity3d.com/ScriptReference/KeyCode.html | KeyCode]]. ===== Examples ===== if (GetKeyDown("W" true)) Trace("W Pressed") endif <=[[4rpl:start| Index]]