Skip to main content

Keyboard

Advanced Feature

This action simulates keyboard input directly on your PC. It's intended for users comfortable with key codes and system automation. Take care when testing — key presses are sent to whichever application has focus at the time the alert fires.

Simulate a keyboard key press or type a string of text when an alert fires. Useful for triggering in-game actions, activating software hotkeys, or running macros.

What You Need

  • Knowledge of the key or key combination you want to press
  • An understanding of which application will have focus when the alert fires

Quick Start

  1. Create or edit an alert.
  2. Click Add Action and select Keyboard.
  3. Choose the operation: Type Text or Press Key.
  4. Configure the text or key to send.
  5. Optionally set a delay before the action runs.
  6. Save and test.

Configuration Options

Operation Mode

Type Text

  • Types a string of text character by character, as if you were typing on a keyboard.
  • Supports plain text and dynamic variables (e.g. {{ username }}).
  • Example: Thanks {{ username }} for the tip!

Press Key

  • Sends a single key press (with optional modifier keys like Ctrl, Shift, Alt).
  • Requires a key code number (the numeric code for the desired key).
  • Optional modifier keys: Ctrl, Shift, Alt, Windows key.
Finding key codes

Key codes follow the nut-js key enum. Common examples:

  • F1 = 58, F2 = 59, ... F12 = 69
  • Enter = 28, Space = 57, Escape = 1
  • A = 30, B = 48, C = 46

Delay

  • Time in milliseconds to wait before the key press is sent.
  • Default: 0 (no delay).
  • Example: set to 500 to wait half a second after the alert fires before pressing the key.

Tips

  • Be careful with the Type Text mode during live streams — the text is sent to whichever window is in focus.
  • Use a delay to give a game or application time to load before the key is pressed.
  • Combine with the Kill Process action to close an app and then re-open it via a hotkey.