Discuss Scratch

whitehat1234
Scratcher
28 posts

Shift key pressed

How do I make a shift key pressed?
-EternityGames-
Scratcher
100+ posts

Shift key pressed

whenclickedifkey (join [Shift]pressed?thenDowhateveryouwant:)

Last edited by -EternityGames- (Jan. 24, 2022 06:21:14)

whitehat1234
Scratcher
28 posts

Shift key pressed

-EternityGames- wrote:

whenclickedifkey (join [Shift]pressed?thenDowhateveryouwant:)



It doesn't work,

Last edited by whitehat1234 (Jan. 24, 2022 06:24:48)

-EternityGames-
Scratcher
100+ posts

Shift key pressed

Well I'm sorry that does not work



VHS_Eyes
Scratcher
35 posts

Shift key pressed

whitehat1234 wrote:

-EternityGames- wrote:

whenclickedifkey (join [Shift]pressed?thenDowhateveryouwant:)



It doesn't work,
ifkeyjoinenterpressed?then
the first join can't be a space, it has to be nothing, this should work, i've tried it.
-EternityGames-
Scratcher
100+ posts

Shift key pressed

Hmmm… ok!
awesome-llama
Scratcher
1000+ posts

Shift key pressed

You can't detect the shift key by itself in Scratch 3. You can however detect characters typed that require the shift key to be held (e.g. the symbols on the number keys).

Last edited by awesome-llama (Jan. 24, 2022 07:10:35)

Coder046
Scratcher
100+ posts

Shift key pressed

No, sadly, you can't. Since it is a functional key and can be used for other things (even turning on and off turbo mode) and keyboard commands, it is not allowed to be detected. This is also true for the backspace, tab, control, alt, and escape keys.
goodpersonsowow
Scratcher
100+ posts

Shift key pressed

You can only detect it in turboWarp. You can't detect it in scratch. You can click the addons section and turn on extra key support and the turn on turboWarp keys. Then you can find:
keyshiftpressed?

Powered by DjangoBB