Added support for multiple keyboards.