You can connect both at the same time, since they don't use the same input profile. You might run into issues, however, if you want to connect two keyboards or a mouse and a keyboard with a trackpad at the same time, but even that might work on most devices.