4x3 Matrix Keypad and USBKeyboard emulation

Which USB shield are your using? The USB Host Shield?

The easiest for you is to use an Arduino Leonardo because it has the necessary USB interface integrated into the processor. With the UNO you have the necessary hardware onboard too but you'll have to program the ATmega16U2 with an ICSP to get what you want.
I never used the USB host shield so I don't know if it's able to be a USB slave too.