I want to capture the keycode which is pressing.But it fail after I release another key.
void keyPressed() {
println("typed " + int(key) + " " + keyCode);
}
The step is below:
1. press A
2. press B
3. release B.
I want to print the keyCode equal A after release B. Is processing-js support it ? How should I write the code?
1