Optimized input processing and displaymode management