Rpi gpio control though keyboard keys

can we create control in node red to control raspberry pi gpio pins through keyboard keys up,down,left,right . press a button led on release the button led off .like game keys control. ...... i need advisor

Please stick to one thread