Laptop's internal keyboard as an external one?
Here is a solution to enable laptop bottom case keyboards as USB keyboards using a Teensy microcontroller. The author has tested a wide variety of keyboard models, including Dell Inspiron, HP Presario, Sony Vaio, and IBM / Lenovo ThinkPad.
A typical laptop keyboard relies on the motherboard for the scanning circuitry. I use a Teensy microcontroller mounted on a connector board to take over this function.
https://hackaday.com/2018/12/04/teensy-liberates-the-thinkpad-keyboard/
Frank Adams liked the keyboard on his Lenovo ThinkPad T61 so much that he decided to design an adapter so he could use it over USB with the Teensy microcontroller. He got the Trackpoint working, and along the way managed to add support for a number of other laptop boards as well. Before you know it, he had a full-blown open source project on his hands.
Links for this project:
https://www.youtube.com/watch?v=Z1PheqSNNP8
https://www.instructables.com/id/How-to-Make-a-USB-Laptop-Keyboard-Controller/
https://github.com/thedalles77/USB_Laptop_Keyboard_Controller
There are controller circuits that will convert a laptop keyboard to usb, i'm currently using one. I'm not sure where you can get them but they obviously exist. They are used to create keyboards for tablets.