Adding keyboard input for pi