DocumentInQuestion.png This page or section is in question as to whether it is useful or not. You can discuss whether you want it deleted or not on its talk page.
Reason: Not that notable enough to be mentioned on its own article, can be merged with other sensing articles
Document stub.png This article or section may not have content matching Scratch Wiki editing standards. Please improve it according to Scratch Wiki:Guidelines and Scratch Wiki:Editing Conventions. (November 2019)
Reason: More description
DocumentInQuestion.png It has been suggested that this page's contents be merged with the page Key () Pressed? (block). You can discuss this on the page's talk page. (November 2019)
Document stub.png This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (November 2019)


Special keys are key sensing blocks set up in a way that allows users to use certain keys that are not on the normal dropdown menu. To get these keys a program similar to this style can be used:
key ( join()[key to detect]) pressed

Keyboard Keys

These are some of the keys users can use:

~`!@#$%^&*()_+-={}|[]\:";'<>?,./

If Enter Pressed

To get enter sensing, you set up the code several ways.

key(join[ent][er])pressed
key(join[enter][])pressed
key(join[][enter])pressed

Some of the ways that users can use this code is if their need is to create an ask block without using the ask block. An example of this code being used is:

say ["press enter to start"]
wait until <key (join[ent][er]) pressed>
broadcast (start game v)

What these can be used for?

Some users create projects that sense when certain keys are pressed. An example of this is:

forever
if<key(join[ent][er])pressed>then
set [enter pressed? v] to [true]
else
set [enter pressed? v] to [false]
end
if<key(join[][=])pressed> then
set [equal pressed? v] to [true]
else
set [equal pressed? v] to [false]

See Also