Skip to content

keyboard_key

drewmccluskey edited this page Feb 12, 2019 · 2 revisions

keyboard_key

variable with currently used key

Returns: string

Description:

This is a variable holding the name of the currently used key.

Example:

if (mouse_check_button_pressed(MouseButtons.Left))
{
    show_message(keyboard_key);
}

This code will show the used key when you hold down a key and press the mouse left button.

Back to Keyboard

Clone this wiki locally