Escape key in combination with up and left is not detected

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GreenCastle

For instance (this is running inside a _physics_process),

if(Input.is_action_pressed("ui_cancel") && Input.is_action_pressed("ui_left")):
	print("CANCEL AND LEFT");
if(Input.is_action_pressed("ui_cancel") && Input.is_action_pressed("ui_up")):
	print("CANCEL AND UP");
if(Input.is_action_pressed("ui_cancel") && Input.is_action_pressed("ui_left") && Input.is_action_pressed("ui_up")):

When playing on a keyboard, CANCEL AND LEFT AND UP is never reached. If you are holding two of these keys, presses on the 3rd are simply not detected. The other three combinations of cardinal directions are fine.

This only applies to playing on a keyboard; on a controller, it’s fine.

I figured out that the problem is with the Esc key. If I change the mapping to Tab, for instance, this problem goes away. Anyone else run into this? What’s going on with the Escape key?

:bust_in_silhouette: Reply From: kidscancode

This is called “keyboard ghosting” and is a limitation of your hardware keyboard, nothing to do with Godot at all.

You can test which combinations of keys don’t work on your keyboard with a tool like this: Keyboard Ghosting Demonstration