How to make a dynamic textures with nodes ?

I would like to make some dynamic textures in real time with nodes from blender.
My project is to create something which react from keyboard keys and it needs to change color or texture after some keyboard action

( i heard that we can do something like that with GLSL ).

Thank you.