Apple patent: distance sensor to replace mechanical keyboard switch