prepare input handling with a newt window