I would like to connect the Pi to my computer (through USB?) and have the computer think that it is a keyboard and mouse. This should be a completely external thing. The end project I am working on will have my laptop take mouse and keyboard commands from the Pi that I am remotely logged into.
Depending on Raspberry Pi model you can or can't acomplish this task.
It depends on the USB hardware interface.
Model A, A+ and Zero has the hardware so it supports the USB OTG/Gadget.
Model 2 and 3 doesn't support USB OTG/Gadget.