Ah thanks, the post you linked to is great! I'm convinced that they are debouncing keys
Regarding F12, they seem to register some random keys simultaneously from i,j,k,l,m,n.
For example, pressing 'Q' gives 'km', pressing 'W' gives 'jlm', etc. Wonder what's the point of this?