Detecting gestural inputs on surfaces