use glfw charFun for text input