So I have a set of different strings made if a certain key is pressed using keyPressed(), but some of those strings i want to convert to characters and tried doing so like this:
char keyChar = keyChanged.charAt(0);
except now i get a nullpointerexpression. if it matters, keyChanged would be a 1 letter string like "r".