add function fileInput and keyboardInput