Your code works fine, thanks!
Therefore I could narrow down the problem. It's how my game handles views. I'm using an extension for that and as soon as I disable it the text input works. I played around with the size of the panel and it seems that the offset is calculated wrong. I'll investigate and report later.