hook up keyboard input