datumhue.debug.input.key
functiondatumhue.debug.input.key(key: input.Key, down: boolean)Press (down = true) or release a key, as a keyboard does: from the next frame on the input readers, input.on_key and the focused widget see it, so every callback run in that frame sees the press or release once; the run that made the call does not. The key stays held until released. Pressing a held key or releasing one that is up does nothing. A side-agnostic modifier name presses its left key.
datumhue.debug.input.key("shift_left", true)
-- Input reaches the readers from the next frame on.
datumhue.time.wait_frames(1)
print(datumhue.input.is_key_down("shift_left")) --> true
-- It stays held until released.
datumhue.debug.input.key("shift_left", false)