I don't think it is possible because your keyboard is basically already "plugged into" the laptop (there's a connector inside your laptop between the keyboard and the motherboard) and therefore can't be connected to and PS3.
I think it's like trying to use one external bluetooth keyboard on two computers. Happy to be corrected though