close input device