Debugging...
Debugging again...
More debugging...
More key event tweaking.