{"id":"input.keyboard--IsKeyDown","name":"IsKeyDown","owner":"yeho","package":"input.keyboard","kind":"function","signature":"external IsKeyDown(text key) -> bool","description":"Is key down.","context":"Poll named keys for the active application window.","parameters":[{"name":"key","type":"text","description":"Supply key as text."}],"returns":"bool","members":[],"tags":["cpu","function","input","input.keyboard","keyboard","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/input/keyboard/keyboard.yh","line":1,"sha256":"b01cadd896e66d85658bea1e5e70feca5490cde784349db07af07dd1d4d933a1"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use IsKeyDown","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using input.keyboard\n\n// Poll named keys for the active application window.\ntext key = \"key\"\nbool result = IsKeyDown(key)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.input_keyboard__iskeydown\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"input.keyboard\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/input/keyboard\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"5cc2d8fefd1eb8dc51ab848603e53952e1293af03f337c7aa4eb4e12e1a5c0d9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=input.keyboard--IsKeyDown","json":"https://demonhunterlabs.com/reference/items/input.keyboard--IsKeyDown.json","markdown":"https://demonhunterlabs.com/reference/text/input.keyboard--IsKeyDown.md"}
