diff --git a/pixelgl/input.go b/pixelgl/input.go
index 1af9977c2839470c26ad4e22f24aaf7a55f51c86..0a4ed9c42b5257e87935be60597ef1ab6401056b 100644
--- a/pixelgl/input.go
+++ b/pixelgl/input.go
@@ -31,6 +31,11 @@ func (w *Window) MouseScroll() pixel.Vec {
 	return w.currInp.scroll
 }
 
+// Typed returns the text typed on the keyboard since the last call to Window.Update.
+func (w *Window) Typed() string {
+	return w.currInp.typed
+}
+
 // Button is a keyboard or mouse button. Why distinguish?
 type Button int
 
@@ -350,16 +355,25 @@ func (w *Window) initInput() {
 		w.window.SetScrollCallback(func(_ *glfw.Window, xoff, yoff float64) {
 			w.currInp.scroll += pixel.V(xoff, yoff)
 		})
+
+		w.window.SetCharCallback(func(_ *glfw.Window, r rune) {
+			w.currInp.typed += string(r)
+		})
 	})
 }
 
 func (w *Window) updateInput() {
+	//FIXME: rething this, currInp can be changed outside this function, which may lead to inconsistencies
+
 	// copy temp to prev
 	w.prevInp = w.tempInp
 
 	// zero current scroll (but keep what was added in callbacks outside of this function)
 	w.currInp.scroll -= w.tempInp.scroll
 
+	// erase typed string
+	w.currInp.typed = ""
+
 	// get events (usually calls callbacks, but callbacks can be called outside too)
 	mainthread.Call(func() {
 		glfw.PollEvents()
diff --git a/pixelgl/window.go b/pixelgl/window.go
index 36a8da366dcca99289feb68383f058a144d0c08f..7ad4f1bfad56d9b1085078c209e0c40ea826680e 100644
--- a/pixelgl/window.go
+++ b/pixelgl/window.go
@@ -69,6 +69,7 @@ type Window struct {
 		mouse   pixel.Vec
 		buttons [KeyLast + 1]bool
 		scroll  pixel.Vec
+		typed   string
 	}
 }