Color change key event and window resize support