Dual Role USB device on AVR
You might consider using a PS/2 keyboard, they are simple to interface with, it's basically just a serial protocol. Then you can still use USB in Device mode to connect to the host PC.