// This program draws a # in a box to the screen at the point
// given by x,y.
int x=225;
int y=250;

void setup() {
  size(500,500);
  background(100);
  smooth();
  strokeWeight(2);
  stroke(255);
}

void draw() {
  // erase whatever was drawn before
  background(100);
  
  // draw box around the character
  fill(150);
  rect(x-5, y-15, 20, 20);
  
  // draw a character
  fill(255);
  text('#', x, y);
}

// FOR YOUR REFERENCE:
// keyPressed is a boolean variable that tests whether a key is depressed
// key is a global variable that stores the current character
// If the key is ALT, CONTROL, SHIFT, UP, DOWN, LEFT, and RIGHT then key == CODED and
// keyCode will store the actual character
// Note that BACKSPACE, TAB, ENTER, RETURN, ESC, and DELETE *are* regular ASCII characters
// If testing for carriage returns, test both RETURN and ENTER