FX2D renderer reporting lower case keys as upper case

Hello,

The FX2D renderer is reporting lower case key presses as upper case.

On my Windows 10 PC this code only prints upper case characters to the console:

import processing.javafx.*;

void setup()
  {
  size(100, 100, FX2D);
  }

void draw()
  {
  }

void keyPressed()
  {
  println(key);
  }

//Workaround:
void keyTyped()
  {
  println(key);  
  }

It works fine with P2D!

I did find a reference and workaround in the old repository:
'key' variable is always uppercase in FX2D renderer · Issue #3938 · processing/processing · GitHub

:)

Yep, that matches the FX2D quirk people have hit before. If you need the actual typed character, keyTyped() is probably the safer callback; keyPressed() is giving you the normalized key value there.