Discuss Scratch

PhillipDC
Scratcher
22 posts

"Keyboard Input" Button

I think that there should be a button called something similar to “Keyboard Input” which would be a boolean. This would simply return the keys currently pressed on your keyboard. For example, if I was holding the Q key, it would return a value of ‘Q’. If I was holding down the Q and W keys, it would return a value of . Is there a reason that this hasn't been added already? It would be very beneficial.
(Keyboard Input?)

Last edited by PhillipDC (April 21, 2026 10:21:43)

I_wantasheep
Scratcher
1000+ posts

"Keyboard Input" Button

<key [any v] pressed?>

also this

PhillipDC wrote:

For example, if I was holding the Q key, it would return a value of ‘Q’. If I was holding down the Q and W keys, it would return a value of ‘Q, W’.
is not how a boolean works, that's how a reporter works, so it's
(keyboard input::sensing)

Last edited by I_wantasheep (April 21, 2026 09:27:04)

Powered by DjangoBB