how to modify input() p5 code example
Example: p5 input
// Open your console to see the output
function setup() {
let inp = createInput('');
inp.input(myInputEvent);
}
function myInputEvent() {
console.log('you are typing: ', this.value());
}