Toggle wasd or cursor keys - gdevelop 5

Hello Community,

I’m working on a game which (at the moment, uses WASD keys). What I’m trying to do is allow the player to chose WASD or Arrow keys (without having to add top-down behaviour to the player sprite or write another condition - which does work).

I thought I could achieve this my adding an OR ||
Screenshot from 2024-06-27 17-39-09

But it doesn’t work. I removed one of these keys and replaced the W with Up - and that works on its own.


You had good idea but bad execution
UP key pressed should be inside OR and not below it