Name

keyCode

Examples
fillVal = color(126)


def draw():
    fill(fillVal)
    rect(25, 25, 50, 50)


def keyPressed():
	global fillVal
    if key == CODED:
        if keyCode == UP:
            fillVal = 255
        elif keyCode == DOWN:
            fillVal = 0
    else:
        fillVal = 126

THIS EXAMPLE IS BROKEN

Description
Related key
keyPressed
keyPressed()
keyReleased()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License