Do proper mouse/touch/keyboard handling in demo2