Comment
Comment by myfonj
To some limited degree (you can detect presence, not position or number of occurences of character), you can do CSS only 'keylogging' even for non-reactive (sans JavaScript) input: you don't have to use attribute selector (which does't work without physical updates), but can exploit webfont with single letter `unicode-range` chunks. Posted it [1] to CrookedStyleSheets [2] some time ago:
[1] https://github.com/jbtronics/CrookedStyleSheets/issues/24
[2] https://news.ycombinator.com/item?id=16157773