Scratch for Java

Stage::isKeyPressed()

Returns true if the key is pressed

Examples

View on GitHub

Syntax

Java

.isKeyPressed(keyCode)

Scratch

<key [space v] pressed?>

Parameters

Name Data Type Description
keyCode KeyCode a key

Return

boolean

isKeyPressed()

Create Shareable URL

Select Sections