Special characters on keyboard

Looking for special character mappings for Game Lab and keyWentDown(): Code.org Tool Documentation

I would like to be able to use a comma, question mark, dash, etc… can you please help me figure out how to do these with keyWentDown in Game Lab?

@cjohns,

Not sure on the names, to be honest. If I find something, I’ll post back here again. Here’s a link to a website that shows the keycodes.

You can use these instead of names. Just don’t include the quotation marks, so this code would draw an ellipse when the dash is pressed.

function draw() {
  if (keyWentDown(189)) {
    ellipse(200, 200, 400, 400);
  }
}

Hope this helps!

Mike