attempt at bug fix for typing in gui

- remove focus from active element when clicking on stage
- only allow typing when form element is not active