Keyboard event handling for UI controls and containers.