make kbd library reentrant
Bring back rotation