Skip to main content

Release a physical key (key.up)

The hardware keyboard behavior described on this page is available in versions after 20260805

Declaration​

key.up(keycode)

Parameters​

Description​

Simulate releasing a previously pressed physical key.

  • This function remains paired with the matching key.down, even if the global hardware keyboard connection changes between the calls, preventing duplicate input or an incorrect release
  • Without a matching key.down, standard keyboard and keypad keys use the current global hardware keyboard. Media and vendor-defined keys keep their previous behavior
  • Calls through key(...):up() follow the same rules

Example​

See the consolidated examples at the end of this chapter.