Added Windows-specific native keyboard handling.
Fixed focus issues introduced by new native event handler.