Coupled electron-nuclear wavepacket dynamics in potassium dimers