improve input handling for GUIs a little bit