//When the key is pressed void keyPressed(){ numberInput.insert_digit(); numberInput.delete_digit(); } //Whe the mouse is pressed void mousePressed(){ numberInput.activate_keyboardInput(); }