I want to make a device with MCU, something like Arduino or Raspberry Pi, which can connect the computer through USB cable and is programmable to send some key signals like keyboard.
Yes, you can find everything you need if you search for the right thing. As you know, a keyboard is a Human Interface Device. What you want to search for then is "arduino USB HID library".