Finger movement detection devices
Maybe you could use capacitive sensing. It is non-mechanical and could be used for any surface shape (in theory). A tiny array of sensors may deliver the resolution you need. Accidental typing could be detected by requiring unlikely touch combinations or having a locked mode, like on (old) mobile phones.