Fixed an issue with input window.
Added logging of some ui events.