{"name":"keyName","title":"keyName","type":"command","url":"https://community.bistudio.com/wiki/keyName","revid":338910,"updated":"2023-04-17T14:36:36Z","groups":["System"],"status":"ok","games":{"ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofpe 1.00","arma3_since":"0.50","description":"Returns the name of a button with extra quotation marks (on the keyboard, mouse or joystick) with the given code.","syntaxes":[{"syntax":"keyName dikCode","params":[{"name":"dikCode","type":"Number or Arma 3 v2.08 String","type_expr":"Number | String"}],"returns":{"type":"String","type_expr":"String"},"form":"unary","right":{"text":"dikCode"}}],"examples":[{"code":["_name = keyName 28; // result is \"\"\"Enter\"\"\""]},{"text":"From Arma 3 v2.08:\n\n```sqf\nprivate _name = keyName \"-1660944350\"; // result is \"\"\"Right Ctrl+G\"\"\"\n```","code":["private _name = keyName \"-1660944350\"; // result is \"\"\"Right Ctrl+G\"\"\""]}],"see_also":["keyImage","actionKeys","actionKeysImages","actionKeysNames","actionKeysNamesArray","DIK KeyCodes"],"notes":[{"user":"POLPOX","date":"2020-04-28T15:10:00Z","text":"The return value is different per keyboard/IME settings."}]}