Button to number up/down

Hallo

very basic question, entschuldigen.

I’d like to switch nodes or numbers with using keyboards.
For example, left button of keyboard to number down and right one to number up to change inputs of switchnode…

Can anyone show how to connect this??

thank you.

takiscope

now i made it! it was easy to use keymatch toggle and counter.
like this. (see attached file)

keyUP-Down.zip (1.1 kB)

note that you can get rid of the togedge nodes by using the Keymatchs built in togedge. just set its Key Mode to Down Only or Up Only.

keyUP-Down+
Just advanced version…I hope you’ll find it usefull

keyUP-Down+.v4p (19.8 kB)