This function returns true if the keyboard is used by the Debug Overlay, or false if it isn't.
The keyboard is used by The Debug Overlay when the cursor is active in a control (a dbg_text_input, for example) or when you drag a window around by left-clicking and holding the mouse button.
is_keyboard_used_debug_overlay();
Step Event
if (!is_keyboard_used_debug_overlay())
{
x += keyboard_check(vk_right) - keyboard_check(vk_left);
y += keyboard_check(vk_down) - keyboard_check(vk_up);
}
The code example above updates the x and y of the instance based on the keyboard input, only if the Debug Overlay isn't receiving keyboard input (as checked using is_keyboard_used_debug_overlay).