That type of drawer liner works great.
I have used it inside the keyboard for sound deadening, and also under the keyboard on the desk to keep it from sliding around.
Solves those "warped" keyboard problems, too, if they aren't more than a couple of mm out of square.