Interesting question, especially if you try to port some Shadertoy demos that can read the keyboard from the pixel shader.
How to Read the Keyboard in a GLSL Shader

3D Programming, Prototyping and Gamedev with GeeXLab
Interesting question, especially if you try to port some Shadertoy demos that can read the keyboard from the pixel shader.