add keyboard input buffer