Pointing device and keyboard