Should I get a desk mat instead of a small mousepad to stop my keyboard from sliding?
Yes. A small mousepad leaves your keyboard on the bare desk where it slides from typing. A large desk mat with a rubber or silicone base grips the desk and keeps the keyboard planted. Just make sure the mat has a non-slip bottom—cheap fabric ones slide too.